Skip to content

Commit

Permalink
Merge branch 'release-0.14.12'. Refs #319.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanperez-keera committed Dec 8, 2024
2 parents ac9003a + 0d486fa commit 6f9c3a4
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 36 deletions.
8 changes: 8 additions & 0 deletions yampa-test/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2024-12-07 Ivan Perez <[email protected]>
* Version bump (0.14.12) (#319).
* Remove unused function Test.FRP.Yampa.Event.randomEventFunction (#314).
* Remove unused variables in Test.FRP.Yampa.Basic (#315).
* Remove redundant imports (#316).
* Import functions to test from FRP.Yampa (#317).
* Add version bounds to base (#320).

2024-10-07 Ivan Perez <[email protected]>
* Version bump (0.14.11) (#310).
* Bump version bounds of dependencies (#309).
Expand Down
3 changes: 1 addition & 2 deletions yampa-test/tests/Test/FRP/Yampa/Arrow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

-- External modules: Yampa
import FRP.Yampa as Yampa
import FRP.Yampa.Arrow as Yampa
import FRP.Yampa as Yampa

tests :: TestTree
tests = testGroup "Regression tests for FRP.Yampa.Arrow"
Expand Down
6 changes: 0 additions & 6 deletions yampa-test/tests/Test/FRP/Yampa/Basic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@ propModFirstOutput =
myStream :: Gen (SignalSampleStream Float)
myStream = uniDistStream

initialValueG :: Gen Float
initialValueG = arbitrary

-- ** @(>=-)@

-- | Test that @f -=> arr (^ 2)@, when applied to any signal, is initially
Expand Down Expand Up @@ -253,9 +250,6 @@ propModFirstInput =
myStream :: Gen (SignalSampleStream Float)
myStream = uniDistStream

initialValueG :: Gen Float
initialValueG = arbitrary

-- ** initially

basicsf_t4 :: [Double]
Expand Down
7 changes: 3 additions & 4 deletions yampa-test/tests/Test/FRP/Yampa/Conditional.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa as Yampa
import FRP.Yampa.Conditional (pause, provided)
import FRP.Yampa.LTLFuture (TPred (Always, SP), evalT)
import FRP.Yampa.QuickCheck (uniDistStream)
import FRP.Yampa.Stream (SignalSampleStream)
import FRP.Yampa.LTLFuture (TPred (Always, SP), evalT)
import FRP.Yampa.QuickCheck (uniDistStream)
import FRP.Yampa.Stream (SignalSampleStream)

import TestsCommon

Expand Down
1 change: 0 additions & 1 deletion yampa-test/tests/Test/FRP/Yampa/Delays.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa as Yampa
import FRP.Yampa.Delays (fby)
import FRP.Yampa.Stream
import FRP.Yampa.QuickCheck
import FRP.Yampa.LTLFuture
Expand Down
17 changes: 5 additions & 12 deletions yampa-test/tests/Test/FRP/Yampa/Event.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Test.FRP.Yampa.Event
where

import Control.Applicative ((<|>))
import Control.Monad (guard, join)
import Control.Monad (join)

#if !MIN_VERSION_base(4,8,0)
import Control.Applicative (pure, (<*>))
Expand All @@ -20,11 +20,10 @@ import Test.QuickCheck hiding (once, sample)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa (Event (..))
import FRP.Yampa.Event (attach, catEvents, event, filterE, fromEvent, gate,
isEvent, isNoEvent, joinE, lMerge, mapFilterE, mapMerge,
maybeToEvent, merge, mergeBy, mergeEvents, noEvent,
noEventFst, noEventSnd, rMerge, splitE, tag, tagWith)
import FRP.Yampa (Event (..), attach, catEvents, event, filterE, fromEvent,
gate, isEvent, isNoEvent, joinE, lMerge, mapFilterE, mapMerge,
maybeToEvent, merge, mergeBy, mergeEvents, noEvent,
noEventFst, noEventSnd, rMerge, splitE, tag, tagWith)

tests :: TestTree
tests = testGroup "Regression tests for FRP.Yampa.Event"
Expand Down Expand Up @@ -464,12 +463,6 @@ randomEventPair = arbitrary
randomEvents :: Gen [Event Integer]
randomEvents = arbitrary

randomEventFunction :: Gen (Event Integer -> Event Integer)
randomEventFunction = do
def <- arbitrary
f <- applyFun <$> arbitrary
return $ event def f

randomEventFunctionIn :: Gen (Event (Integer -> Integer))
randomEventFunctionIn =
oneof [ return noEvent
Expand Down
1 change: 0 additions & 1 deletion yampa-test/tests/Test/FRP/Yampa/EventS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa as Yampa
import FRP.Yampa.EventS (snap, sampleWindow, recur, andThen, snapAfter, sample)
import FRP.Yampa.Stream
import FRP.Yampa.QuickCheck
import FRP.Yampa.LTLFuture
Expand Down
1 change: 0 additions & 1 deletion yampa-test/tests/Test/FRP/Yampa/Hybrid.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa as Yampa
import FRP.Yampa.Hybrid as Yampa

import FRP.Yampa.LTLFuture (evalT, TPred (Next, Always, SP))
import FRP.Yampa.QuickCheck (uniDistStream, uniDistStreamMaxDT)
Expand Down
3 changes: 0 additions & 3 deletions yampa-test/tests/Test/FRP/Yampa/Switches.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa as Yampa
import FRP.Yampa.Switches (dpSwitchZ, drpSwitchZ, pSwitchZ, parC, parZ,
rpSwitchZ)
import FRP.Yampa.EventS (snap)
import FRP.Yampa.Stream
import FRP.Yampa.QuickCheck
import FRP.Yampa.LTLFuture
Expand Down
1 change: 0 additions & 1 deletion yampa-test/tests/Test/FRP/Yampa/Task.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)

import FRP.Yampa as Yampa
import FRP.Yampa.Task

import FRP.Yampa.LTLFuture (TPred (Always, SP), evalT)
import FRP.Yampa.QuickCheck (uniDistStream)
Expand Down
6 changes: 3 additions & 3 deletions yampa-test/yampa-test.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cabal-version: >= 1.10
build-type: Simple

name: yampa-test
version: 0.14.11
version: 0.14.12
author: Ivan Perez
maintainer: [email protected]
homepage: http://github.com/ivanperez-keera/Yampa
Expand Down Expand Up @@ -84,7 +84,7 @@ library
base >= 4 && < 5
, normaldistribution >= 1.1.0.1 && < 1.2
, QuickCheck >= 2.12 && < 2.16
, Yampa >= 0.14.11 && < 0.15
, Yampa >= 0.14.12 && < 0.15

default-language:
Haskell2010
Expand Down Expand Up @@ -163,5 +163,5 @@ test-suite space
False
else
build-depends:
base
base >= 4 && < 5
, Yampa
4 changes: 4 additions & 0 deletions yampa/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-12-07 Ivan Perez <[email protected]>
* Version bump (0.14.12) (#319).
* Re-export missing definitions (#318).

2024-10-07 Ivan Perez <[email protected]>
* Version bump (0.14.11) (#310).
* Add new publications by Schmidli et al. (#306).
Expand Down
2 changes: 1 addition & 1 deletion yampa/Yampa.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cabal-version: >= 1.10
build-type: Simple

name: Yampa
version: 0.14.11
version: 0.14.12
author: Henrik Nilsson, Antony Courtney
maintainer: Ivan Perez ([email protected])
homepage: https://github.com/ivanperez-keera/Yampa/
Expand Down
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 6f9c3a4

Please sign in to comment.