uni-util-2.3.0.3: Utilities for the uniform workbench
Safe HaskellNone
LanguageHaskell2010

Util.AtomString

Description

AtomString atomises strings. Right now this code is not very efficient but it shouldn't be too hard to improve.

This code includes no less that 3 uses of unsafePerformIO. Oh well.

Documentation

fromStringWEHacked :: (StringClass stringClass, DeepSeq stringClass) => String -> IO (WithError stringClass) Source #

newtype Str a Source #

Constructors

Str a 

Instances

Instances details
(Monad m, StringClass a) => HasBinary (Str a) m Source # 
Instance details

Defined in Util.AtomString

Methods

writeBin :: WriteBinary m -> Str a -> m () Source #

readBin :: ReadBinary m -> m (Str a) Source #

mkFromStringWE :: Parser stringClass -> String -> String -> WithError stringClass Source #

Orphan instances

StringClass stringClass => QuickShow stringClass Source # 
Instance details

Methods

quickShow :: WrapShow stringClass Source #

StringClass stringClass => QuickRead stringClass Source # 
Instance details

Methods

quickRead :: WrapRead stringClass Source #