Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ChangeLog = ChangeLog [Entry]
- data Entry = Entry {}
- parseEntry :: CharParser st input m Entry
- parseDashedLine :: CharParser st input m ()
- parseDateAddressLine :: CharParser st input m (UTCTime, EMailAddress)
- parseDescription :: CharParser st input m String
Documentation
Instances
Eq ChangeLog Source # | |
Ord ChangeLog Source # | |
Defined in OpenSuse.Types.ChangeLog | |
Show ChangeLog Source # | |
Generic ChangeLog Source # | |
Semigroup ChangeLog Source # | |
Monoid ChangeLog Source # | |
NFData ChangeLog Source # | |
Defined in OpenSuse.Types.ChangeLog | |
HasParser ChangeLog Source # | |
Defined in OpenSuse.Types.ChangeLog | |
type Rep ChangeLog Source # | |
Defined in OpenSuse.Types.ChangeLog |
Instances
Eq Entry Source # | |
Ord Entry Source # | |
Show Entry Source # | |
Generic Entry Source # | |
NFData Entry Source # | |
Defined in OpenSuse.Types.ChangeLog | |
HasParser Entry Source # | |
Defined in OpenSuse.Types.ChangeLog | |
type Rep Entry Source # | |
Defined in OpenSuse.Types.ChangeLog type Rep Entry = D1 ('MetaData "Entry" "OpenSuse.Types.ChangeLog" "distribution-opensuse-1.1.3-LaEhhDjNKwBGllhZZe05hY" 'False) (C1 ('MetaCons "Entry" 'PrefixI 'True) (S1 ('MetaSel ('Just "changedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "changedBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EMailAddress) :*: S1 ('MetaSel ('Just "changeDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
parseEntry :: CharParser st input m Entry Source #
parseDashedLine :: CharParser st input m () Source #
parseDateAddressLine :: CharParser st input m (UTCTime, EMailAddress) Source #
Note that the input must be terminated by a newline.
>>>
parseTest parseDateAddressLine "Wed Jun 27 09:25:07 UTC 2018 - foo@example.org\n"
(2018-06-27 09:25:07 UTC,EMailAddress "foo@example.org")
parseDescription :: CharParser st input m String Source #
Consume all text until the end of the file or a dashed line is found. In
the latter case, the dashed line is consumed as well. This is unfortunate,
but it's how the notFollowedBy
combinator works, unfortunately,