@@ -1,37 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
3−{-# LANGUAGE KindSignatures #-}
4−{-# LANGUAGE ScopedTypeVariables #-}
5−{-# LANGUAGE TypeOperators #-}
6−{-# LANGUAGE TypeFamilies #-}
7−{-# LANGUAGE PolyKinds #-}
8−{-# LANGUAGE MultiParamTypeClasses #-}
9−{-# LANGUAGE FlexibleContexts #-}
10−{-# LANGUAGE FlexibleInstances #-}
11−{-# LANGUAGE LambdaCase #-}
13−module Grenade.Graph.Network (
18−import Control.Monad.Random (MonadRandom)
19−import Data.Singletons
20−import Data.Singletons.Prelude
24−import Grenade.Core.Shape
25−import Grenade.Core.Network ( UpdateLayer (..), Layer (..) )
27−-- | Type of a DAG network
29−data Fin :: Nat -> * where
31− FinS :: Fin n -> Fin (n + 1)
33−data Edge :: Nat -> * where
34− Edge :: Shape -> Fin n -> Edge n
37− Node :: a -> [Edge n] -> Node a n