mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-24 03:35:17 +03:00
16 lines
433 B
Haskell
16 lines
433 B
Haskell
module Fixtures where
|
|
|
|
import Data.Maybe (fromJust)
|
|
import qualified Path as P
|
|
import qualified StrongPath as SP
|
|
import qualified System.FilePath as FP
|
|
|
|
systemSPRoot :: SP.Path' SP.Abs (SP.Dir d)
|
|
systemSPRoot = fromJust $ SP.parseAbsDir systemFpRoot
|
|
|
|
systemPathRoot :: P.Path P.Abs P.Dir
|
|
systemPathRoot = fromJust $ P.parseAbsDir systemFpRoot
|
|
|
|
systemFpRoot :: FilePath
|
|
systemFpRoot = if FP.pathSeparator == '\\' then "C:\\" else "/"
|