File: Posix.hs

package info (click to toggle)
haskell-path 0.9.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 432 kB
  • sloc: haskell: 3,246; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{-# LANGUAGE CPP #-}

#define PLATFORM_NAME Posix
#include "Include.hs"

qqAbsDir :: FilePath
qqAbsDir = checkInstantiated [absdir|/name/|]

qqAbsFile :: FilePath
qqAbsFile = checkInstantiated [absdir|/name|]

thAbsDir :: FilePath
thAbsDir = checkInstantiated $(mkAbsDir "/name/")

thAbsFile :: FilePath
thAbsFile = checkInstantiated $(mkAbsFile "/name")

liftAbsDir :: FilePath
liftAbsDir = checkInstantiated $(TH.lift (Path "/name/" :: Path Abs Dir))

liftAbsFile :: FilePath
liftAbsFile = checkInstantiated $(TH.lift (Path "/name" :: Path Abs File))