1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

Define a Carrier instance for Core.

This commit is contained in:
Rob Rix 2019-07-15 13:01:22 -04:00
parent 3e5d703263
commit c83d5f083e
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -1,4 +1,4 @@
{-# LANGUAGE DeriveGeneric, DeriveTraversable, FlexibleContexts, LambdaCase, OverloadedStrings, QuantifiedConstraints, RankNTypes,
{-# LANGUAGE DeriveGeneric, DeriveTraversable, FlexibleContexts, LambdaCase, MultiParamTypeClasses, OverloadedStrings, QuantifiedConstraints, RankNTypes,
ScopedTypeVariables, StandaloneDeriving, TypeFamilies, TypeOperators #-}
module Data.Core
( Core(..)
@ -66,6 +66,9 @@ instance Applicative Core where
instance Monad Core where
a >>= f = iter id Core Var f a
instance Carrier CoreF Core where
eff = Core
data CoreF f a
= Let User