Let's try it out:
david@desktop:lhc$ cat HelloWorld.hs
module Main where
main = do print (2^150)
print (3*10^13*299792458)
david@desktop:lhc$ ./HelloWorld
1427247692705959881058285969449495136382746624
8993773740000000000000
No, not that Hadron Collider. The Haskell Compiler.
david@desktop:lhc$ cat HelloWorld.hs
module Main where
main = do print (2^150)
print (3*10^13*299792458)
david@desktop:lhc$ ./HelloWorld
1427247692705959881058285969449495136382746624
8993773740000000000000
No comments:
Post a Comment