Skip to content

Instantly share code, notes, and snippets.

@bshepherdson
Created August 20, 2013 19:48
Show Gist options
  • Select an option

  • Save bshepherdson/6286288 to your computer and use it in GitHub Desktop.

Select an option

Save bshepherdson/6286288 to your computer and use it in GitHub Desktop.
Errors with lenses
SNES/CPU.hs:1963:48:
No instance for (Applicative
(Control.Lens.Internal.Context.Pretext (->) Word8 Word8))
arising from a use of `traversed'
Possible fix:
add an instance declaration for
(Applicative
(Control.Lens.Internal.Context.Pretext (->) Word8 Word8))
In the first argument of `(.)', namely `traversed'
In the second argument of `(.)', namely
`traversed . index 1 . tilemapHigh'
In the second argument of `Range', namely
`(backgrounds . traversed . index 1 . tilemapHigh)'
SNES/CPU.hs:1993:36:
No instance for (Monoid Word16) arising from a use of `traversed'
Possible fix: add an instance declaration for (Monoid Word16)
In the first argument of `(.)', namely `traversed'
In the second argument of `(.)', namely
`traversed . index n . horizontalOffset'
In the second argument of `(.)', namely
`backgrounds . traversed . index n . horizontalOffset'
Failed, modules loaded: none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment