Closed ddssff closed 9 years ago
Lens
is just a type synonym:
type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
so by putting that inside a function argument, you have created a higher order type. Simply add {-# LANGUAGE RankNTypes #-}
to the top of the file.
What I should have mentioned is that I already have Rank2Types in that file!
I changed Rank2Types to RankNTypes and this fixed it.
This error occurs in a file with Rank2Types set in the header:
Here is the build: https://travis-ci.org/ddssff/cabal-debian/jobs/50780350