Movatterモバイル変換


[0]ホーム

URL:


base-4.12.0.0: Basic libraries

Copyright(c) The University of Glasgow 2002
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilitynon-portable (uses Text.ParserCombinators.ReadP)
Safe HaskellTrustworthy
LanguageHaskell2010

Text.Read.Lex

Description

The cut-down Haskell lexer, used by Text.Read

Synopsis

Documentation

dataLexemeSource#

Constructors

CharChar

Character literal

StringString

String literal, with escapes interpreted

PuncString

Punctuation or reserved symbol, e.g.(,::

IdentString

Haskell identifier, e.g.foo,Baz

SymbolString

Haskell symbol, e.g.>>,:%

NumberNumber

Since: 4.6.0.0

EOF 
Instances
EqLexemeSource#

Since: 2.1

Instance details

Defined inText.Read.Lex

ReadLexemeSource#

Since: 2.1

Instance details

Defined inGHC.Read

ShowLexemeSource#

Since: 2.1

Instance details

Defined inText.Read.Lex

dataNumberSource#

Since: 4.6.0.0

Instances
EqNumberSource#

Since: 4.6.0.0

Instance details

Defined inText.Read.Lex

ShowNumberSource#

Since: 4.6.0.0

Instance details

Defined inText.Read.Lex

numberToInteger ::Number ->MaybeIntegerSource#

Since: 4.5.1.0

numberToFixed ::Integer ->Number ->Maybe (Integer,Integer)Source#

Since: 4.7.0.0

numberToRational ::Number ->RationalSource#

Since: 4.6.0.0

numberToRangedRational :: (Int,Int) ->Number ->MaybeRationalSource#

Since: 4.5.1.0

lex ::ReadPLexemeSource#

expect ::Lexeme ->ReadP ()Source#

Since: 4.7.0.0

hsLex ::ReadPStringSource#

Haskell lexer: returns the lexed string, rather than the lexeme

lexChar ::ReadPCharSource#

readIntP ::Num a => a -> (Char ->Bool) -> (Char ->Int) ->ReadP aSource#

readOctP :: (Eq a,Num a) =>ReadP aSource#

readDecP :: (Eq a,Num a) =>ReadP aSource#

readHexP :: (Eq a,Num a) =>ReadP aSource#

isSymbolChar ::Char ->BoolSource#

Produced byHaddock version 2.20.0


[8]ページ先頭

©2009-2025 Movatter.jp