- Preparation time: 40 minutes
- Total time: 3 hours
- Makes: ~50 portions
- 1kg caster sugar
- 250g butter
{-# LANGUAGE RankNTypes #-} | |
import Data.Functor.Const | |
import Data.Functor.Identity | |
type SimpleLens s a = forall f. Functor f => (a -> f a) -> s -> f s | |
view :: SimpleLens s a -> s -> a | |
view l = getConst . l Const |