File: URI.hs

package info (click to toggle)
haskell-foundation 0.0.30-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 928 kB
  • sloc: haskell: 9,124; ansic: 570; makefile: 6
file content (38 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- |
-- Module      : Foundation.VFS.URI
-- License     : BSD-style
-- Maintainer  : foundation
-- Stability   : experimental
-- Portability : portable
--

module Foundation.VFS.URI
    ( URI(..)
    , URISchema(..)
    , URIAuthority(..)
    , URIQuery(..)
    , URIFragment(..)
    , URIPath(..)
    ) where

import Basement.Compat.Base
import Foundation.VFS.Path(Path(..))

-- ------------------------------------------------------------------------- --
--                                URI                                        --
-- ------------------------------------------------------------------------- --

-- | TODO this is not implemented yet
data URI = URI
data URISchema = URISchema
data URIAuthority = URIAuthority
data URIQuery = URIQuery
data URIFragment = URIFragment
data URIPath = URIPath
instance Path URI where
    type PathEnt URI = URIPath
    type PathPrefix URI = (URISchema, URIAuthority)
    type PathSuffix URI = (URIQuery, URIFragment)
    (</>) = undefined
    splitPath = undefined
    buildPath = undefined