6

I'm intrested because I would like to inspect the definitions of built-in functions in Prelude.

I searched for it, but only found the precompiled files in ~/.cabal/share/idris...

Boldizsár Németh
  • 1,847
  • 13
  • 20

2 Answers2

6

According to Vitus's comment I found the sources here:

https://github.com/idris-lang/Idris-dev/tree/master/libs

shhyou
  • 332
  • 2
  • 10
Boldizsár Németh
  • 1,847
  • 13
  • 20
0

For smaller queries there is also :printdef in the REPL

Idris> :printdef uncurry
uncurry : (a -> b -> c) -> (a, b) -> c
uncurry f (a, b) = f a b
corazza
  • 31,222
  • 37
  • 115
  • 186