Idris2/libs/base/System/Info.idr

17 lines
242 B
Idris
Raw Normal View History

2020-05-18 15:59:07 +03:00
module System.Info
%extern prim__os : String
%extern prim__codegen : String
export
os : String
os = prim__os
export
codegen : String
codegen = prim__codegen
2020-05-26 12:59:14 +03:00
export
isWindows : Bool
2020-05-26 21:56:16 +03:00
isWindows = os `elem` ["windows", "mingw32", "cygwin32"]