↧
Answer by Cirdec for Haskell Lens Tutorial with traverse
view actually has a type that's less restrictive than Lens s t a b -> s -> a.If you drop the type signature, ghci will tell you the type for view:t viewview :: ((a1 -> Const a1 b1) -> t...
View ArticleHaskell Lens Tutorial with traverse
I'm trying to follow this tutorial: http://blog.jakubarnold.cz/2014/08/06/lens-tutorial-stab-traversal-part-2.htmlI'm using the following code that I load into ghci:{-# LANGUAGE RankNTypes,...
View Article