path-0.9.6: Support for well-typed paths
Safe HaskellNone
LanguageHaskell2010

System.OsString.Compat.Windows

Documentation

newtype WindowsString #

Constructors

WindowsString 

Fields

Instances

Instances details
NFData WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Methods

rnf :: WindowsString -> ()

Monoid WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Semigroup WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Data WindowsString 
Instance details

Defined in System.OsString.Compat.Windows

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WindowsString -> c WindowsString

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WindowsString

toConstr :: WindowsString -> Constr

dataTypeOf :: WindowsString -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WindowsString)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WindowsString)

gmapT :: (forall b. Data b => b -> b) -> WindowsString -> WindowsString

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WindowsString -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WindowsString -> r

gmapQ :: (forall d. Data d => d -> u) -> WindowsString -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> WindowsString -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

Generic WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Associated Types

type Rep WindowsString 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsString = D1 ('MetaData "WindowsString" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsString" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortByteString)))
Show WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Methods

showsPrec :: Int -> WindowsString -> ShowS

show :: WindowsString -> String

showList :: [WindowsString] -> ShowS

Eq WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Ord WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Lift WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Methods

lift :: Quote m => WindowsString -> m Exp

liftTyped :: forall (m :: Type -> Type). Quote m => WindowsString -> Code m WindowsString

type Rep WindowsString 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsString = D1 ('MetaData "WindowsString" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsString" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortByteString)))

newtype WindowsChar #

Constructors

WindowsChar 

Fields

Instances

Instances details
NFData WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Methods

rnf :: WindowsChar -> ()

Generic WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Associated Types

type Rep WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsChar = D1 ('MetaData "WindowsChar" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

Methods

from :: WindowsChar -> Rep WindowsChar x

to :: Rep WindowsChar x -> WindowsChar

Show WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Methods

showsPrec :: Int -> WindowsChar -> ShowS

show :: WindowsChar -> String

showList :: [WindowsChar] -> ShowS

Eq WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Methods

(==) :: WindowsChar -> WindowsChar -> Bool

(/=) :: WindowsChar -> WindowsChar -> Bool

Ord WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsChar = D1 ('MetaData "WindowsChar" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

data WindowsString #

Instances

Instances details
NFData WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Methods

rnf :: WindowsString -> ()

Monoid WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Semigroup WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Data WindowsString 
Instance details

Defined in System.OsString.Compat.Windows

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WindowsString -> c WindowsString

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WindowsString

toConstr :: WindowsString -> Constr

dataTypeOf :: WindowsString -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WindowsString)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WindowsString)

gmapT :: (forall b. Data b => b -> b) -> WindowsString -> WindowsString

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WindowsString -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WindowsString -> r

gmapQ :: (forall d. Data d => d -> u) -> WindowsString -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> WindowsString -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

Generic WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Associated Types

type Rep WindowsString 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsString = D1 ('MetaData "WindowsString" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsString" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortByteString)))
Show WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Methods

showsPrec :: Int -> WindowsString -> ShowS

show :: WindowsString -> String

showList :: [WindowsString] -> ShowS

Eq WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Ord WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Lift WindowsString 
Instance details

Defined in System.OsString.Internal.Types

Methods

lift :: Quote m => WindowsString -> m Exp

liftTyped :: forall (m :: Type -> Type). Quote m => WindowsString -> Code m WindowsString

type Rep WindowsString 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsString = D1 ('MetaData "WindowsString" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsString" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortByteString)))

data WindowsChar #

Instances

Instances details
NFData WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Methods

rnf :: WindowsChar -> ()

Generic WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Associated Types

type Rep WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsChar = D1 ('MetaData "WindowsChar" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

Methods

from :: WindowsChar -> Rep WindowsChar x

to :: Rep WindowsChar x -> WindowsChar

Show WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Methods

showsPrec :: Int -> WindowsChar -> ShowS

show :: WindowsChar -> String

showList :: [WindowsChar] -> ShowS

Eq WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

Methods

(==) :: WindowsChar -> WindowsChar -> Bool

(/=) :: WindowsChar -> WindowsChar -> Bool

Ord WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsChar 
Instance details

Defined in System.OsString.Internal.Types

type Rep WindowsChar = D1 ('MetaData "WindowsChar" "System.OsString.Internal.Types" "os-string-2.0.7-inplace" 'True) (C1 ('MetaCons "WindowsChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

all :: (WindowsChar -> Bool) -> WindowsString -> Bool #

any :: (WindowsChar -> Bool) -> WindowsString -> Bool #

head :: HasCallStack => WindowsString -> WindowsChar #

init :: HasCallStack => WindowsString -> WindowsString #

last :: HasCallStack => WindowsString -> WindowsChar #

tail :: HasCallStack => WindowsString -> WindowsString #

foldl :: (a -> WindowsChar -> a) -> a -> WindowsString -> a #

foldl' :: (a -> WindowsChar -> a) -> a -> WindowsString -> a #

foldr :: (WindowsChar -> a -> a) -> a -> WindowsString -> a #

null :: WindowsString -> Bool #

decodeFS :: WindowsString -> IO String #

encodeFS :: String -> IO WindowsString #

(!?) :: WindowsString -> Int -> Maybe WindowsChar #

decodeLE :: WindowsString -> IO String #

decodeUtf :: MonadThrow m => WindowsString -> m String #

decodeWith :: TextEncoding -> WindowsString -> Either EncodingException String #

encodeLE :: String -> IO WindowsString #

encodeUtf :: MonadThrow m => String -> m WindowsString #

encodeWith :: TextEncoding -> String -> Either EncodingException WindowsString #

find :: (WindowsChar -> Bool) -> WindowsString -> Maybe WindowsChar #

findIndex :: (WindowsChar -> Bool) -> WindowsString -> Maybe Int #

findIndices :: (WindowsChar -> Bool) -> WindowsString -> [Int] #

foldr' :: (WindowsChar -> a -> a) -> a -> WindowsString -> a #

fromBytes :: MonadThrow m => ByteString -> m WindowsString #

index :: HasCallStack => WindowsString -> Int -> WindowsChar #

pstr :: QuasiQuoter #

toChar :: WindowsChar -> Char #

unfoldr :: (a -> Maybe (WindowsChar, a)) -> a -> WindowsString #

unfoldrN :: Int -> (a -> Maybe (WindowsChar, a)) -> a -> (WindowsString, Maybe a) #

unsafeEncodeUtf :: HasCallStack => String -> WindowsString #

Orphan instances

Data WindowsString Source # 
Instance details

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WindowsString -> c WindowsString

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WindowsString

toConstr :: WindowsString -> Constr

dataTypeOf :: WindowsString -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WindowsString)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WindowsString)

gmapT :: (forall b. Data b => b -> b) -> WindowsString -> WindowsString

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WindowsString -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WindowsString -> r

gmapQ :: (forall d. Data d => d -> u) -> WindowsString -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> WindowsString -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WindowsString -> m WindowsString