Created
January 22, 2017 14:10
-
-
Save esad/261f1bb39a22690764ccbad6235ae1fd 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
> import X | |
> import Data.Lens | |
> :paste | |
… _x :: Lens' X Int | |
… _x = _Newtype | |
… | |
(line 2, column 4): | |
unexpected = | |
expecting ::, qualifier, proper name, (, string literal, {, _, "forall", "\8704", identifier, type name, operator, number, char literal, "true", "false", [, "\\", data constructor name, "case", "if", "do", "let", hole literal or end of input |
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
module X where | |
import Data.Newtype | |
import Data.Lens (Lens') | |
import Data.Lens.Iso.Newtype (_Newtype) | |
newtype X = X Int | |
ten = X 10 | |
derive instance newtypeX :: Newtype X _ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment