Skip to content

Instantly share code, notes, and snippets.

@bgamari
Created December 15, 2011 17:10
Show Gist options
  • Save bgamari/1481901 to your computer and use it in GitHub Desktop.
Save bgamari/1481901 to your computer and use it in GitHub Desktop.
import Data.Set (Set)
import qualified Data.Set as S
import Data.EnumMap (EnumMap)
import qualified Data.EnumMap as EM
import Data.EnumSet (EnumSet)
import qualified Data.EnumSet as ES
data Priors = Priors { aLambda :: Double
, aTheta :: Double
, aPhi :: Double
}
deriving (Show, Eq)
newtype Entity = Entity Int
newtype Node = Node Int
data Network = Network { cFriends :: Set (Node,Node)
, cNodeEntities :: EnumMap Node (EnumSet Entity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment