reads package:ghc-lib-parser
equivalent to
readsPrec with a precedence of 0.
A parser for a type
a, represented as a function that takes a
String and returns a list of possible parses as
(a,String) pairs.
Note that this kind of backtracking parser is very inefficient;
reading a large structure may be quite slow (cf
ReadP).
attempts to parse a value from the front of the string, returning a
list of (parsed value, remaining string) pairs. If there is no
successful parse, the returned list is empty.
Derived instances of
Read and
Show satisfy the
following:
That is,
readsPrec parses the string produced by
showsPrec, and delivers the value that
showsPrec started
with.
Parse a string into a significand and exponent. A trivial example
might be: ghci> readSignificandExponentPair "1E2" (1,2) In a more
complex case we might return a exponent different than that which the
user wrote. This is needed in order to use a Integer significand.
ghci> readSignificandExponentPair "-1.11E5" (-111,3)
A thread is in one of 4 states
convert the status of a thread in JS land to a string
Convert the status of a thread in JS land to an Int
Make the logger thread-safe