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