mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-21 22:17:19 +03:00
5ea6aa0520
The changes are as follows: + `print` is for putting showable things to STDOUT. + `printLn` is for putting showable things to STDOUT with a new line + `putCharLn` for putting a single character to STDOUT, with a new line. Effects has been updated accordingly.
17 lines
437 B
Idris
17 lines
437 B
Idris
module Main
|
|
|
|
import Data.Hash
|
|
|
|
main : IO ()
|
|
main = do printLn $ hash (the Bits8 3)
|
|
printLn $ hash (the (List Bits8) [3])
|
|
printLn $ hash "hello world"
|
|
printLn $ hash 'a'
|
|
printLn $ hash (the Bits8 3)
|
|
printLn $ hash (the Bits16 3)
|
|
printLn $ hash (the Bits32 3)
|
|
printLn $ hash (the Bits64 3)
|
|
printLn $ hash (the Int 3)
|
|
printLn $ hash (the Integer 3)
|
|
|