Skip to content

Instantly share code, notes, and snippets.

@LukaHorvat
Created November 12, 2014 16:45
Show Gist options
  • Save LukaHorvat/389c5e9cbfe69d1149b0 to your computer and use it in GitHub Desktop.
Save LukaHorvat/389c5e9cbfe69d1149b0 to your computer and use it in GitHub Desktop.
No instance for (MonadState
(Seq (Maybe [Int]), Set Int)
(StateT (Seq Int, Set Int) Data.Functor.Identity.Identity))
arising from a use of `gets'
In the second argument of `(<$>)', namely `gets fst'
In a stmt of a 'do' block: (x :< xs) <- viewl <$> gets fst
In the expression:
do { (x :< xs) <- viewl <$> gets fst;
modify $ const xs *** id;
return x }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment