Created
February 8, 2016 00:46
-
-
Save RyanGlScott/3fa71c22738f7295ada1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# OPTIONS_GHC -ddump-splices #-} | |
module FreeTH where | |
import Control.Monad.Free | |
import Control.Monad.Free.TH | |
deriving instance Functor (Foo a) | |
data Foo a b where | |
Foo1, Foo2 :: d -> Foo Int d | |
Foo3 :: Foo Char f | |
$(makeFree ''Foo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment