uni-util-2.3.0.2: Utilities for the uniform workbench

Safe HaskellNone
LanguageHaskell98

Util.AtomString

Contents

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
(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 #