1-- | This module defines the 'MonadDynamicWriter' class.
3{-# LANGUAGE FlexibleInstances #-}
4{-# LANGUAGE FunctionalDependencies #-}
5{-# LANGUAGE MultiParamTypeClasses #-}
6{-# LANGUAGE UndecidableInstances #-}
7#ifdef USE_REFLEX_OPTIMIZER
8{-# OPTIONS_GHC -fplugin=Reflex.Optimizer #-}
10module Reflex.DynamicWriter.Class
11 ( MonadDynamicWriter (..)
14import Control.Monad.Reader (ReaderT, lift)
15import Reflex.Class (Dynamic)
17-- | 'MonadDynamicWriter' efficiently collects 'Dynamic' values using 'tellDyn'
18-- and combines them monoidally to provide a 'Dynamic' result.
19class (Monad m, Monoid w) => MonadDynamicWriter t w m | m -> t w where
20 tellDyn :: Dynamic t w -> m ()
22instance MonadDynamicWriter t w m => MonadDynamicWriter t w (ReaderT r m) where
23 tellDyn = lift . tellDyn
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list