Module

Data.String.Read

#Read

class Read a  where

Represent types that can be read from strings (enum-like ADT)

Members

Instances

#Zero

class Zero a  where

Represent types that have a zero value

Members

Instances

#readDefault

readDefault :: forall a. Read a => Zero a => String -> a

Read a value a from a String but fallback on Zero a on failure

Modules