Dear fellow haskellers,
the strict-base-types package makes it easy to get rid of the unnecessary laziness (and the resulting space leaks) in your applications; i.e., no more
data AppState = AppState
{ _field :: !(Maybe T.Text)
, ...
}
as the alternative
import qualified Data.Maybe.Strict as S
data AppState = AppState
{ _field :: !(S.Maybe T.Text)
, ...
}
is now equally cheap.
happy hacking,
Simon