clash-lib-1.8.4: Clash: a functional hardware description language - As a library

Copyright | (C) 2020-2021 QBayLogic B.V.
License | BSD2 (see the file LICENSE)
Maintainer | QBayLogic B.V. <devops@qbaylogic.com
Safe Haskell | Safe-Inferred
Language | Haskell2010

Clash.Netlist.Id.Common

Description

Synopsis

- parseWhiteSpace :: Text -> Maybe Text
- isWhiteSpace :: Char -> Bool
- parsePrintable :: Text -> Maybe Text
- parseSingle :: (Char -> Bool) -> Text -> Maybe Text
- parseMaybeSingle :: (Char -> Bool) -> Text -> Maybe Text
- parseLetter :: Text -> Maybe Text
- parseDigit :: Text -> Maybe Text
- parseLetterOrDigit :: Text -> Maybe Text
- parseUnderscore :: Text -> Maybe Text
- parseDollar :: Text -> Maybe Text
- parseTab :: Text -> Maybe Text
- parseBackslash :: Text -> Maybe Text
- failNonEmpty :: Text -> Maybe Text
- repeatParseN :: (Text -> Maybe Text) -> Text -> Maybe (Int, Text)
- repeatParse :: (Text -> Maybe Text) -> Text -> Maybe Text
- zEncode :: (Char -> Bool) -> Text -> Text
- prettyName :: Text -> Text
- maybeTuple :: Text -> Maybe (Text, Text)
- parseTuple :: Text -> Maybe (Int, Text)

# Documentation

parseWhiteSpace :: Text -> Maybe Text Source #

isWhiteSpace :: Char -> Bool Source #

parsePrintable :: Text -> Maybe Text Source #

parseSingle :: (Char -> Bool) -> Text -> Maybe Text Source #

parseMaybeSingle :: (Char -> Bool) -> Text -> Maybe Text Source #

parseLetter :: Text -> Maybe Text Source #

parseDigit :: Text -> Maybe Text Source #

parseLetterOrDigit :: Text -> Maybe Text Source #

parseUnderscore :: Text -> Maybe Text Source #

parseDollar :: Text -> Maybe Text Source #

parseTab :: Text -> Maybe Text Source #

parseBackslash :: Text -> Maybe Text Source #

failNonEmpty :: Text -> Maybe Text Source #

repeatParseN :: (Text -> Maybe Text) -> Text -> Maybe (Int, Text) Source #

repeatParse :: (Text -> Maybe Text) -> Text -> Maybe Text Source #

zEncode Source #

Arguments

:: (Char -> Bool) | Characters to keep
-> Text |
-> Text |

Encodes tuples as TupN and removes all characters not matching a predicate.

prettyName :: Text -> Text Source #

maybeTuple :: Text -> Maybe (Text, Text) Source #

parseTuple :: Text -> Maybe (Int, Text) Source #