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.
14 lines
311 B
Idris
14 lines
311 B
Idris
module Main
|
|
|
|
foo : { t : Type } ->
|
|
(a : t) ->
|
|
{ default tactics { refine Refl; solve; } prfA : a = a } ->
|
|
(b : Nat) ->
|
|
(c : Nat) ->
|
|
{ default tactics { refine Refl; solve; } prfBC : b = c } ->
|
|
Nat
|
|
foo {t} a {prfA = p} b c {prfBC} = b
|
|
|
|
main : IO ()
|
|
main = printLn $ foo 3 4 4
|