-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Implements the "StringPrep" algorithm
--   
--   Implements the StringPrep algorithm
@package stringprep
@version 1.0.0

module Text.CharRanges
data Range
Single :: {-# UNPACK #-} !Char -> Range
Range :: {-# UNPACK #-} !Char -> {-# UNPACK #-} !Char -> Range
range :: Char -> Char -> Range
single :: Char -> Range
data CharSet

-- | Allows quick lookups using ranges.
toSet :: [Range] -> CharSet
member :: Char -> CharSet -> Bool
instance GHC.Classes.Eq Text.CharRanges.CharRange
instance GHC.Classes.Eq Text.CharRanges.Range
instance GHC.Classes.Ord Text.CharRanges.CharRange
instance GHC.Internal.Show.Show Text.CharRanges.Range

module Text.StringPrep
data StringPrepProfile
Profile :: [Map] -> Bool -> [Prohibited] -> Bool -> StringPrepProfile
[maps] :: StringPrepProfile -> [Map]
[shouldNormalize] :: StringPrepProfile -> Bool
[prohibited] :: StringPrepProfile -> [Prohibited]
[shouldCheckBidi] :: StringPrepProfile -> Bool
data Range
type Map = Char -> Text
range :: Char -> Char -> Range
single :: Char -> Range
runStringPrep :: StringPrepProfile -> Text -> Maybe Text
a1 :: [Range]
b1 :: Map
b2 :: Map
c11 :: [Range]
c12 :: [Range]
c21 :: [Range]
c22 :: [Range]
c3 :: [Range]
c4 :: [Range]
c5 :: [Range]
c6 :: [Range]
c7 :: [Range]
c8 :: [Range]
c9 :: [Range]

-- | Profiles as defined by various sources
module Text.StringPrep.Profiles

-- | Nameprep profile (RFC 3491)
namePrepProfile :: Bool -> StringPrepProfile

-- | SASLPrep profile (RFC 4013). The parameter determines whether
--   unassigned charater are allowed (query behaviour) or disallowed
--   (store)
saslPrepProfile :: Bool -> StringPrepProfile
