rosmsg-0.4.4.0: ROS message parser, render, TH

CopyrightAlexander Krupenkin 2016
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
PortabilityPOSIX / WIN32
Safe HaskellSafe
LanguageHaskell2010

Robotics.ROS.Msg.Parser

Contents

Description

Parser components for the ROS message description language (msg files). See http://wiki.ros.org/msg for reference.

Synopsis

Attoparsec re-export

data Result r :: * -> * #

The result of a parse.

Constructors

Fail Text [String] String

The parse failed. The Text is the input that had not yet been consumed when the failure occurred. The [String] is a list of contexts in which the error occurred. The String is the message describing the error, if any.

Done Text r

The parse succeeded. The Text is the input that had not yet been consumed (if any) when the parse succeeded.

Instances

Functor Result 

Methods

fmap :: (a -> b) -> Result a -> Result b #

(<$) :: a -> Result b -> Result a #

Show r => Show (Result r) 

Methods

showsPrec :: Int -> Result r -> ShowS #

show :: Result r -> String #

showList :: [Result r] -> ShowS #

NFData r => NFData (Result r) 

Methods

rnf :: Result r -> () #

parse :: Parser a -> Text -> Result a #

Run a parser and return its result.

The ROS message language parser

rosmsg :: Parser MsgDefinition Source #

The ROS message language parser