Skip to content
Snippets Groups Projects
Commit eb455b85 authored by Bodigrim's avatar Bodigrim Committed by Mikolaj Konarski
Browse files

Make `Flag a` a type synonym for `Last (Maybe a)`

As http://www.haskell.org/pipermail/cabal-devel/2007-December/001509.html
explains, `Data.Monoid.Last` was introduced only in base-3.0 and was too
new in 2007 to rely on. Thus a compatibility shim `data Flag a` was
vendored in.

We are long past 2007 and `Data.Monoid.Last` can now be used instead.
The commit keeps providing `Flag` and `NoFlag` as pattern synonyms
for backward compatibility, but makes `type Flag = Last.`
parent 5892719d
No related branches found
No related tags found
No related merge requests found
Showing
with 64 additions and 88 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment