Skip to content

Commit

Permalink
yampa: Re-export missing definitions. Refs #318.
Browse files Browse the repository at this point in the history
Although FRP.Yampa re-exports lots of definitions from lots of modules,
it does not export all definitions (even when there's no name clash).
This is a bit irregular: unless there's a strong reason why they should
not be re-exported, it's best to export all.

This commit re-exports, from FRP.Yampa, all definitions from all modules
that are meant to be visible.
  • Loading branch information
ivanperez-keera committed Dec 8, 2024
1 parent 523f930 commit 869c853
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion yampa/src/FRP/Yampa.hs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,16 @@ module FRP.Yampa
, takeEvents
, dropEvents

-- ** Hybrid SF combinators
, snap
, snapAfter
, sample
, sampleWindow

-- ** Repetition and switching
, recur
, andThen

-- ** Pointwise functions on events
, noEvent
, noEventFst
Expand Down Expand Up @@ -245,11 +255,21 @@ module FRP.Yampa
, pSwitch, dpSwitch
, rpSwitch, drpSwitch

-- ** Parallel composition/switching (lists)
-- *** Parallel composition/switching with zip routing (lists)
, parZ
, pSwitchZ, dpSwitchZ
, rpSwitchZ, drpSwitchZ

-- *** Parallel composition/switching with replication (lists)
, parC

-- * Discrete to continuous-time signal functions
-- ** Wave-form generation
, hold
, dHold
, trackAndHold
, dTrackAndHold

-- ** Accumulators
, accum
Expand All @@ -264,10 +284,15 @@ module FRP.Yampa
-- ** Basic delays
, pre
, iPre
, fby

-- ** Timed delays
, delay

-- * Conditional
-- ** Guards and automata-oriented combinators
, provided

-- ** Variable delay
, pause

Expand Down Expand Up @@ -314,9 +339,30 @@ module FRP.Yampa
, evalAt
, evalFuture

-- * Tasks
-- ** The Task type
, Task
, mkTask
, runTask
, runTask_
, taskToSF

-- ** Basic tasks
, constT
, sleepT
, snapT

-- ** Basic tasks combinators
, timeOut
, abortWhen

-- * Auxiliary definitions
-- Reverse function composition and arrow plumbing aids
, dup
, arr2
, arr3
, arr4
, arr5

-- * Re-exported module, classes, and types
, module Control.Arrow
Expand All @@ -329,7 +375,7 @@ import Control.Arrow
import Data.VectorSpace

-- Internal modules
import FRP.Yampa.Arrow (dup)
import FRP.Yampa.Arrow
import FRP.Yampa.Basic
import FRP.Yampa.Conditional
import FRP.Yampa.Delays
Expand All @@ -343,4 +389,5 @@ import FRP.Yampa.Random
import FRP.Yampa.Scan
import FRP.Yampa.Simulation
import FRP.Yampa.Switches
import FRP.Yampa.Task
import FRP.Yampa.Time

0 comments on commit 869c853

Please sign in to comment.