cabal-gild-1.3.1.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Unstable.Type.Input

Synopsis

Documentation

data Input Source #

Represents an input stream, which can either be standard input (STDIN) or a file.

Constructors

Stdin 
File FilePath 

Instances

Instances details
Show Input Source # 
Instance details

Defined in CabalGild.Unstable.Type.Input

Methods

showsPrec :: Int -> Input -> ShowS #

show :: Input -> String #

showList :: [Input] -> ShowS #

Eq Input Source # 
Instance details

Defined in CabalGild.Unstable.Type.Input

Methods

(==) :: Input -> Input -> Bool #

(/=) :: Input -> Input -> Bool #

Ord Input Source # 
Instance details

Defined in CabalGild.Unstable.Type.Input

Methods

compare :: Input -> Input -> Ordering #

(<) :: Input -> Input -> Bool #

(<=) :: Input -> Input -> Bool #

(>) :: Input -> Input -> Bool #

(>=) :: Input -> Input -> Bool #

max :: Input -> Input -> Input #

min :: Input -> Input -> Input #

fromString :: String -> Input Source #

Converts a string into an input. The string "-" will be converted into Stdin, and any other string will be converted into File.