dirfiles-0.1.0.2

Safe HaskellNone

Data.Library.UUIRI

Synopsis

Documentation

newtype UUIRI Source

Constructors

UUIRI (UUID, IRI) 

iri :: UUIRI -> IRISource

returns the IRI part of the UUIRI

uuid :: UUIRI -> UUIDSource

returns the UUID part of the UUIRI

toUUIRI :: UUID -> Text -> UUIRISource

a constructor for UUIRIs

fromUUIRI :: UUIRI -> (UUID, Text)Source

returns the UUIRI tuple with the IRI translated to Text

isRelative :: UUIRI -> BoolSource

is the IRI part of the UUIRI a relative IRI ?

isAbsolute :: UUIRI -> BoolSource

is the IRI part of the UUIRI an absolute IRI ?

extension :: UUIRI -> Maybe TextSource

returns the IRI extension of a given UUIRI

domain :: UUIRI -> Maybe TextSource

returns the IRI domain of a given UUIRI

protocol :: UUIRI -> Maybe TextSource

returns the IRI protocol of a given UUIRI

dirs :: UUIRI -> [Text]Source

returns the IRI directories of a given UUIRI