drasil-lang-0.1.60.0: A framework for code and document generation for scientific software - Language SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.URI.AST

Description

Abstract Syntax Tree for Uniform Resource Identifiers

Synopsis

Documentation

data URI Source #

A uniform resource identifier (uses URLs or ISBNs).

data Scheme Source #

URL scheme (either HTTP or FTP).

Constructors

HTTP 
FTP 

data Authority Source #

Authentication if necessary.

Constructors

Full Username Password Host Port

Full authentication.

Simple Host Port

Simplify for when authentication isn't necessary.

type Path Source #

Arguments

 = String

Type the full path excluding the first /.

type Query Source #

Arguments

 = [String]

Make sure [] doesn't print a "?". Separate elements with "&".

type Fragment Source #

Arguments

 = String

Make sure "" becomes "" not "#" when printing.

type Username Source #

Arguments

 = String

Again make sure "" doesn't print anything.

type Password Source #

Arguments

 = String

Don't print anything if "" or if Username="".

type Host Source #

Arguments

 = String

Type the host address (ex. "www.github.com").

data Port Source #

Constructors

P Int

Take an integer port number if applicable.

NA

Do nothing if port is not applicable.