Transfer: Changed transfer program file extension from .tr to .tra to avoid collision with Troff file extension.

This commit is contained in:
bringert
2005-12-06 16:33:40 +00:00
parent ee4adf5ba8
commit c703a92136
18 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
import bool
import stoneage
monoid_Bool : sig { zero : Bool; plus : Bool -> Bool -> Bool }
monoid_Bool = rec
zero = False
plus = \x -> \y -> x && y
isSnake : (A : Tree) -> Tree A -> Bool
isSnake _ x = case x of
Snake -> True
_ -> composFold ? ? compos_Tree Bool monoid_Bool ? isSnake x
wideSnake : (A : Cat) -> Tree A -> Tree A
wideSnake _ x = case x of
Wide y -> let y' : CN = wideSnake ? y
in if isSnake CN y' then Thick y' else Wide y'
_ -> composOp ? ? compos_Tree ? wideSnake x