goatee-0.2.0: A monadic take on a 2,500-year-old board game - library.

Safe HaskellSafe-Inferred

Game.Goatee.Lib.Property.Parser

Contents

Description

Parsers of property values.

Import Game.Goatee.Lib.Property rather than importing this module.

Synopsis

Documentation

simpleTextParser :: Parser SimpleTextSource

A parser for SGF SimpleText property values.

Exposed for testing

compose :: Parser a -> Parser b -> Parser (a, b)Source

text :: Bool -> Parser StringSource

A parser for SGF text property values. Its argument should be true if the text is inside of a composed property value, so ':' should terminate the value in addition to ']'.