diff options
author | David Feuer <David.Feuer@gmail.com> | 2016-05-24 18:48:53 -0400 |
---|---|---|
committer | David Feuer <David.Feuer@gmail.com> | 2016-05-24 18:48:53 -0400 |
commit | ba70ca2a921d7aa7af547a61ea7eba5a02381653 (patch) | |
tree | 2d1f3ea65e471d16bff569b795973139206a6d65 /haddock-library/src/Documentation/Haddock/Parser/Monad.hs | |
parent | 6db811aefb9cba65c8efe3876e850c813f280b6c (diff) |
Make parser state a newtype
Previously, it was `data` wrapping a `Maybe`, which seems a bit
silly. Obviously, this can be changed back if anyone wants to add
more fields some day.
Diffstat (limited to 'haddock-library/src/Documentation/Haddock/Parser/Monad.hs')
-rw-r--r-- | haddock-library/src/Documentation/Haddock/Parser/Monad.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-library/src/Documentation/Haddock/Parser/Monad.hs b/haddock-library/src/Documentation/Haddock/Parser/Monad.hs index a421c58c..3f7d60f8 100644 --- a/haddock-library/src/Documentation/Haddock/Parser/Monad.hs +++ b/haddock-library/src/Documentation/Haddock/Parser/Monad.hs @@ -42,7 +42,7 @@ import Data.Tuple import Documentation.Haddock.Types (Version) -data ParserState = ParserState { +newtype ParserState = ParserState { parserStateSince :: Maybe Version } deriving (Eq, Show) |