mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 08:11:45 +03:00
7 lines
195 B
Idris
7 lines
195 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"
|