forked from GitHub/gf-core
Transfer: reimplement operators with type classes.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import prelude
|
||||
|
||||
depif : (A:Type) -> (B:Type) -> (b:Bool) -> A -> B -> if Type b then A else B
|
||||
depif _ _ True x _ = x
|
||||
depif _ _ False _ y = y
|
||||
|
||||
Reference in New Issue
Block a user