User loginNavigation |
GADTs as gaurdsIs there some reason Haskell didn't expose GADTs as guards?
-- Haskell
data Term t
Lit Int :: Term Int
App (Term (a -> b)) Term a :: Term b
...
-- Guards
data Term t
Lit Int where t = Int
App (Term (a -> b)) Term a where t = b
...
It seems equivalent and semantically simpler. By Matt M at 2018-03-07 18:54 | LtU Forum | previous forum topic | next forum topic | other blogs | 5312 reads
|
Browse archives
Active forum topics |
Recent comments
20 hours 21 min ago
2 days 1 hour ago
2 days 1 hour ago
1 week 2 hours ago
1 week 2 hours ago
1 week 2 hours ago
4 weeks 18 hours ago
4 weeks 6 days ago
4 weeks 6 days ago
5 weeks 18 hours ago