I think there are no built-in AttrSplices. You should be able to bind no splices using one of mempty
, return ()
or noSplices
from Heist.SpliceAPI
.
Splices s
is a type alias for SplicesM s ()
, which is just a State
wrapped in newtype.
Slices s
is also instance of Monoid type class so you can use mempty here.
newtype SplicesM s a = SplicesM { unSplices :: State (Map Text s) a }
deriving (Monad, MonadState (Map Text s))
type Splices s = SplicesM s ()
instance Monoid (Splices s) where
mempty = noSplices
mappend = unionWithS (\_ b -> b)