Created
November 21, 2019 16:34
-
-
Save hasufell/a0f56692e23a9cd178ffcfee9c25cd35 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 TemplateHaskell #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE LiberalTypeSynonyms #-} | |
module MyOptics where | |
import Optics | |
data Foo = Foo { | |
_foo :: forall x . (x -> x) | |
} | |
$(makeLenses 'Foo) | |
{-- | |
foo :: Getter Foo (x -> x) | |
--} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment