File: Windows.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 (18 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE CPP #-}

#define PLATFORM_NAME Windows
#define PLATFORM_PATH WindowsPath
#define PLATFORM_STRING WindowsString
#include "Include.hs"

-- See https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats
drives_ :: NonEmpty PLATFORM_STRING
drives_ = NonEmpty.fromList
  [ [OsString.pstr|C:\|] -- Common
  , [OsString.pstr|C:/|] -- Common
  , [OsString.pstr|\\host|] -- UNC
  --, [OsString.pstr|\\.\C:\|] -- DOS Device Path
  , [OsString.pstr|\\?\C:\|] -- DOS Device Path
  --, [OsString.pstr|\\?\UNC\|] -- DOS Device Path
  --, [OsString.pstr|\\.\UNC\|] -- DOS Device Path
  ]