Idris2/libs/base/System/Info.idr
2020-05-27 03:12:54 +08:00

17 lines
242 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"]