File: Windows.hs

package info (click to toggle)
haskell-path 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: haskell: 1,669; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
#define PLATFORM_NAME   Windows
#define IS_WINDOWS      True
#include "Include.hs"

qqAbsDir :: FilePath
qqAbsDir = foo [absdir|C:\foo\|]

qqAbsFile :: FilePath
qqAbsFile = foo [absdir|C:\foo|]

thAbsDir :: FilePath
thAbsDir = foo $(mkAbsDir "C:\\foo\\")

thAbsFile :: FilePath
thAbsFile = foo $(mkAbsFile "C:\\foo")

liftAbsDir :: FilePath
liftAbsDir = foo $(TH.lift (Path "C:\\foo\\" :: Path Abs Dir))

liftAbsFile :: FilePath
liftAbsFile = foo $(TH.lift (Path "C:\\foo" :: Path Abs File))