mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
ec77ad21ab
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
8 lines
196 B
Idris
8 lines
196 B
Idris
import System.Info
|
|
|
|
main : IO ()
|
|
main = do Just np <- getNProcessors
|
|
| Nothing => putStrLn "ERROR: Couldn't get number of processors!"
|
|
putStrLn $ (show np) ++ " processors"
|
|
|