haskell-docs-cli-1.0.0.0: Search Hoogle and navigate Hackage from the command line.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Docs.CLI.Types

Synopsis

Documentation

type Anchor = Text Source #

Appears at the end of a url after a pound sign, pointing the element to focus on. https://hackage.haskell.org/package/hoogle-5.0.18.1/docs/Hoogle.html#t:Target ^^^^^^^^

data DeclUrl Source #

Constructors

DeclUrl ModuleUrl Anchor 

Instances

Instances details
Show DeclUrl Source # 
Instance details

Defined in Docs.CLI.Types

Eq DeclUrl Source # 
Instance details

Defined in Docs.CLI.Types

Methods

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

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

HasUrl DeclUrl Source # 
Instance details

Defined in Docs.CLI.Types

Methods

getUrl :: DeclUrl -> Url Source #

data SourceLink Source #

Link to an item in a src page

Constructors

SourceLink Url Anchor 

Instances

newtype ModuleUrl Source #

Constructors

ModuleUrl Url 

Instances

Instances details
Show ModuleUrl Source # 
Instance details

Defined in Docs.CLI.Types

Eq ModuleUrl Source # 
Instance details

Defined in Docs.CLI.Types

HasUrl ModuleUrl Source # 
Instance details

Defined in Docs.CLI.Types

Methods

getUrl :: ModuleUrl -> Url Source #

newtype PackageUrl Source #

Url to a Haddock package page

Constructors

PackageUrl Url 

Instances

Instances details
Show PackageUrl Source # 
Instance details

Defined in Docs.CLI.Types

Eq PackageUrl Source # 
Instance details

Defined in Docs.CLI.Types

HasUrl PackageUrl Source # 
Instance details

Defined in Docs.CLI.Types

newtype RelativeUrl Source #

Constructors

RelativeUrl Text 

data FileInfo Source #

Constructors

FileInfo 

class HasUrl a where Source #

Methods

getUrl :: a -> Url Source #

Instances

Instances details
HasUrl DeclUrl Source # 
Instance details

Defined in Docs.CLI.Types

Methods

getUrl :: DeclUrl -> Url Source #

HasUrl ModuleUrl Source # 
Instance details

Defined in Docs.CLI.Types

Methods

getUrl :: ModuleUrl -> Url Source #

HasUrl PackageUrl Source # 
Instance details

Defined in Docs.CLI.Types

HasUrl SourceLink Source # 
Instance details

Defined in Docs.CLI.Types

HasUrl Url Source # 
Instance details

Defined in Docs.CLI.Types

Methods

getUrl :: Url -> Url Source #