Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Shell expansions.
Synopsis
- braceExpand :: Word -> [Word]
- data TildePrefix
- tildePrefix :: Word -> Maybe (TildePrefix, Word)
- splitWord :: [Char] -> Word -> [Word]
Documentation
braceExpand :: Word -> [Word] Source #
Brace expand a word.
data TildePrefix Source #
A tilde prefix.
Instances
Eq TildePrefix Source # | |
Defined in Language.Bash.Expand (==) :: TildePrefix -> TildePrefix -> Bool # (/=) :: TildePrefix -> TildePrefix -> Bool # | |
Read TildePrefix Source # | |
Defined in Language.Bash.Expand readsPrec :: Int -> ReadS TildePrefix # readList :: ReadS [TildePrefix] # readPrec :: ReadPrec TildePrefix # readListPrec :: ReadPrec [TildePrefix] # | |
Show TildePrefix Source # | |
Defined in Language.Bash.Expand showsPrec :: Int -> TildePrefix -> ShowS # show :: TildePrefix -> String # showList :: [TildePrefix] -> ShowS # | |
Pretty TildePrefix Source # | |
Defined in Language.Bash.Expand pretty :: TildePrefix -> Doc Source # prettyList :: [TildePrefix] -> Doc Source # |
tildePrefix :: Word -> Maybe (TildePrefix, Word) Source #
Strip the tilde prefix of a word, if any.