morley-1.20.0: Developer tools for the Michelson Language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Morley.Michelson.Parser.Annotations

Synopsis

Documentation

note :: forall tag. KnownAnnTag tag => Parser (Annotation tag) Source #

General TVF Annotation parser, including Special Annotations

anyNote :: Parser AnyAnn Source #

Parse arbitrary annotation.

notesVVFF :: Parser ((VarAnn, VarAnn), (FieldAnn, FieldAnn)) Source #

Parse 012 var anns and 012 field anns. It doesn't matter which come first, so long as annotations of the same type appear together.

E.g.:

  • "" is valid
  • "%a" is valid
  • "%a @c" is valid
  • "%a %b c d" is valid
  • "c d %a %b" is valid
  • "c %a %b d" is not valid, because the two var anns are not "grouped" together.
  • "%a c d %b" is not valid, because the two fields anns are not "grouped" together.

permute2Def :: (Default a, Default b, Monad f, Alternative f) => f a -> f b -> f (a, b) Source #

permute3Def :: (Default a, Default b, Default c, Monad f, Alternative f) => f a -> f b -> f c -> f (a, b, c) Source #