forked from idris-lang/Idris-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes idris-lang#3264 Show auto implicit documentaton in Idris Doc.
- Loading branch information
Jan de Muijnck-Hughes
committed
Jul 13, 2016
1 parent
96e583c
commit 088846b
Showing
7 changed files
with
123 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module docs005 | ||
|
||
import Data.List | ||
|
||
%default total | ||
|
||
||| A foobar with an auto implicit | ||
data Foobar : Type where | ||
||| New Foo | ||
||| | ||
||| @xs Some `xs` | ||
||| @ys Some `ys` | ||
||| @prf The prf | ||
||| @prf1 A prf | ||
NewFoo : (xs : List String) | ||
-> (ys : List Nat) | ||
-> {prf1 : NonEmpty xs} | ||
-> {auto prf : NonEmpty ys} | ||
-> Foobar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Data type docs005.Foobar : Type | ||
A foobar with an auto implicit | ||
|
||
Constructors: | ||
NewFoo : (xs : List String) -> | ||
(ys : List Nat) -> {auto prf : NonEmpty ys} -> Foobar | ||
New Foo | ||
Arguments: | ||
xs : List String -- Some xs | ||
|
||
ys : List Nat -- Some ys | ||
|
||
(implicit) prf1 : NonEmpty xs -- A prf | ||
|
||
(auto implicit) prf : NonEmpty ys -- The prf | ||
|
||
docs005.NewFoo : (xs : List String) -> | ||
(ys : List Nat) -> {auto prf : NonEmpty ys} -> Foobar | ||
New Foo | ||
Arguments: | ||
xs : List String -- Some xs | ||
|
||
ys : List Nat -- Some ys | ||
|
||
(implicit) prf1 : NonEmpty xs -- A prf | ||
|
||
(auto implicit) prf : NonEmpty ys -- The prf | ||
|
||
The function is Total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:doc Foobar | ||
:doc NewFoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
${IDRIS:-idris} --quiet --nocolor docs005.idr < input | ||
rm *.ibc |