Skip to content

Commit

Permalink
Re-export internal TH functions
Browse files Browse the repository at this point in the history
- `unitsTupleInstances`
- `taggedBundleTupleInstances`
- `protocolTupleInstances`
  • Loading branch information
lmbollen committed Sep 30, 2024
1 parent 5553ae2 commit 3a9c62f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
8 changes: 8 additions & 0 deletions clash-protocols-base/src/Protocols/Plugin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ A GHC source plugin providing a DSL for writing Circuit components. Credits to
@circuit-notation@ at <https://github.com/cchalmers/circuit-notation>.
-}
module Protocols.Plugin (
-- * Circuit types
Circuit (..),
Protocol (..),

-- * clash-prelude related types
CSignal,

-- * plugin functions
plugin,
circuit,
(-<),

-- * template haskell functions
protocolTupleInstances,
) where

-- base
Expand Down
9 changes: 8 additions & 1 deletion clash-protocols-base/src/Protocols/Plugin/TaggedBundle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
-- For debugging TH:
-- {-# OPTIONS_GHC -ddump-splices #-}

module Protocols.Plugin.TaggedBundle where
module Protocols.Plugin.TaggedBundle (
-- * Typeclasses
TaggedBundle (..),
pattern TaggedBundle,

-- * Template haskell functions
taggedBundleTupleInstances,
) where

import Clash.Explicit.Prelude

Expand Down
9 changes: 8 additions & 1 deletion clash-protocols-base/src/Protocols/Plugin/Units.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
-- For debugging TH:
-- {-# OPTIONS_GHC -ddump-splices #-}

module Protocols.Plugin.Units where
module Protocols.Plugin.Units (
-- * Typeclasses
Units (..),

-- * Template haskell functions
unitsTupleInstances,
)
where

import Clash.Explicit.Prelude

Expand Down

0 comments on commit 3a9c62f

Please sign in to comment.