| 1 |
{-# OPTIONS --guardedness --sized-types #-} |
| 2 |
|
| 3 |
module Main where |
| 4 |
|
| 5 |
open import Data.List.Base using (_∷_; []) |
| 6 |
open import Data.String.Base using (String; unlines) |
| 7 |
open import Data.Tree.Rose |
| 8 |
open import Data.Tree.Rose.Show |
| 9 |
open import IO.Base |
| 10 |
open import IO.Finite |
| 11 |
open import Function.Base using (_$_; id) |
| 12 |
|
| 13 |
dependencies : Rose String _ |
| 14 |
dependencies = node "standard-library" |
| 15 |
$ agda |
| 16 |
∷ cabal |
| 17 |
∷ haskell |
| 18 |
∷ [] where |
| 19 |
|
| 20 |
haskell : Rose String _ |
| 21 |
haskell = node "Haskell" |
| 22 |
$ node "Haskell (bootstrap)" [] |
| 23 |
∷ node "C" [] |
| 24 |
∷ [] |
| 25 |
|
| 26 |
cabal : Rose String _ |
| 27 |
cabal = node "cabal" (haskell ∷ []) |
| 28 |
|
| 29 |
agda : Rose String _ |
| 30 |
agda = node "Agda" |
| 31 |
$ haskell |
| 32 |
∷ cabal |
| 33 |
∷ node "alex" (haskell ∷ []) |
| 34 |
∷ node "happy" (haskell ∷ []) |
| 35 |
∷ [] |
| 36 |
|
| 37 |
main : Main |
| 38 |
main = run $ do |
| 39 |
putStrLn $ unlines $ showSimple id dependencies |