packages feed

HaskellAnalysisProgram-0.1.0: src/MetaHS/EDSL/Graph/Types.hs

{-|
Module      : MetaHS.EDSL.Graph.Types
Description : The MetaHS EDSL Graph types
Copyright   : Copyright (C) 2017-2019 H.H.R.F. Vos, S. Kamps
License     : -- This file is distributed under the  terms of the Apache License 2.0.
              For more information, see the file "LICENSE", which is included in the distribution.
Stability   : experimental
MetaHS EDSL Graph types
-}
module MetaHS.EDSL.Graph.Types
    ( GraphType
    , ParamsType
    , Directed (..)
    ) where

import Data.Text.Lazy (Text)
import Data.Graph.Inductive
import Data.GraphViz
import MetaHS.DataModel.MetaModel (Element)

-- | Type synonym for generated LCOM graph.
type GraphType  = Gr Element Text

-- | Type synonym for generated GraphvizParams.
type ParamsType = GraphvizParams Node Element Text () Element

-- | Determines whether the graph should be directed or undirected.
data Directed = Directed | Undirected