Skip to content

Commit 62ce8b3

Browse files
committed
readData Lift works
1 parent 1d9bafd commit 62ce8b3

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

Examples/Data/Lift.agda

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@ module Generic.Examples.Data.Lift where
22

33
open import Generic.Main as Main hiding (Lift; lift; lower)
44

5-
-- `readData Main.Lift` doesn't work, because of the same issue with implicits.
6-
7-
postulate
8-
whatever : {A : Set} -> A
9-
105
Lift : {α} β -> Set α -> Set (α ⊔ β)
11-
Lift β A = μ′ $ packData (quote Main.Lift) whatever whatever ((A ⇒ pos) ∷ []) (quote Main.lift , tt)
6+
Lift β = readData Main.Lift
127

138
pattern lift x = !#₀ (relv x , lrefl)
149

readme.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generic
22

3-
It's a library for doing generic programming in Agda. The repository is under reconstruction currently.
3+
It's a library for doing generic programming in Agda.
44

55
# A quick taste
66

@@ -140,14 +140,6 @@ inj = gcoerce foldD
140140
(appDef (quote _⊔_)
141141
(explRelArg (pureVar 5) ∷ explRelArg (pureVar 6) ∷ [])))))
142142
-- consTypes
143-
(implDPi ℕ
144-
(λ rx →
145-
explDPi (B (unrelv rx))
146-
(λ rx₁ →
147-
explDPi (List ℕ)
148-
(λ rx₂ →
149-
explDPi A (λ rx₃ → var (unrelv rx , unrelv rx₁ , unrelv rx₂)))))
150-
151143
(implRelDPi ℕ
152144
(λ rx →
153145
explRelDPi (B (unrelv rx))

0 commit comments

Comments
 (0)