1 {-# LANGUAGE Rank2Types #-}
2 module Language.LOL.Symantic.Raw where
4 import Data.Text (Text)
5 import qualified Data.Text as Text
9 -- | Data type on the wire.
14 read_safe :: Read a => Text -> Either Error_Read a
16 case reads $ Text.unpack t of
18 _ -> Left $ Error_Read t
20 -- * Type 'Error_Read'