2Module: Reflex.BehaviorWriter.Class
3Description: This module defines the 'MonadBehaviorWriter' class
6{-# LANGUAGE FlexibleInstances #-}
7{-# LANGUAGE FunctionalDependencies #-}
8{-# LANGUAGE MultiParamTypeClasses #-}
9{-# LANGUAGE UndecidableInstances #-}
10#ifdef USE_REFLEX_OPTIMIZER
11{-# OPTIONS_GHC -fplugin=Reflex.Optimizer #-}
13module Reflex.BehaviorWriter.Class
14 ( MonadBehaviorWriter (..)
17import Control.Monad.Reader (ReaderT, lift)
18import Reflex.Class (Behavior)
20-- | 'MonadBehaviorWriter' efficiently collects 'Behavior' values using 'tellBehavior'
21-- and combines them monoidally to provide a 'Behavior' result.
22class (Monad m, Monoid w) => MonadBehaviorWriter t w m | m -> t w where
23 tellBehavior :: Behavior t w -> m ()
25instance MonadBehaviorWriter t w m => MonadBehaviorWriter t w (ReaderT r m) where
26 tellBehavior = lift . tellBehavior
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