File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,12 +59,6 @@ FST i = Rose i
5959
6060fst-leaf = rose-leaf
6161
62- induction : ∀ {A : 𝔸} {B : Set } → (atoms A → List B → B) → FST ∞ A → B
63- induction {A} {B} f n = go n [] where
64- go : FST ∞ A → List B → B
65- go (a -< [] >-) bs = f a (reverse bs)
66- go (a -< c ∷ cs >-) bs = go (a -< cs >-) (go c [] ∷ bs)
67-
6862{-|
6963Equality relation that determines when to FST nodes
7064should be composed: Exactly if their atoms are equal.
@@ -821,12 +815,12 @@ module Impose (AtomSet : 𝔸) where
821815
822816 module Show (show-F : F → String) (show-A : A → String) where
823817 mutual
824- show-FST : FSTA ∞ → Lines
825- show-FST = induction λ a children → do
818+ show-FST : {i : Size} → FSTA i → Lines
819+ show-FST (a -< cs >-) = do
826820 > show-A a
827- indent 2 (lines children )
821+ indent 2 (lines (map show-FST cs) )
828822
829- show-FSF : List (FSTA ∞ ) → Lines
823+ show-FSF : {i : Size} → List (FSTA i ) → Lines
830824 show-FSF roots = lines (map show-FST roots)
831825
832826 show-Feature : Feature → Lines
You can’t perform that action at this time.
0 commit comments