Idris2/libs/base/System/Info.idr
2020-05-26 17:59:14 +08:00

16 lines
241 B
Idris

module System.Info
%extern prim__os : String
%extern prim__codegen : String
export
os : String
os = prim__os
export
codegen : String
codegen = prim__codegen
export
isWindows : Bool
isWindows = os `elem` ["windows", "mingw32", "cygwin32"]