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:
parent
3e5d703263
commit
c83d5f083e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user