Skip to content

Instantly share code, notes, and snippets.

@esad
Created January 22, 2017 14:10
Show Gist options
  • Save esad/261f1bb39a22690764ccbad6235ae1fd to your computer and use it in GitHub Desktop.
Save esad/261f1bb39a22690764ccbad6235ae1fd to your computer and use it in GitHub Desktop.
> 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
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