Skip to content

Commit

Permalink
Adds new type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Solomon committed May 25, 2022
1 parent ad2f704 commit 3edc4e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.7] - 2022-05-26

- Adds better type annotation for child.


## [1.1.6] - 2022-05-16

- Updates Bolson.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purescript-wags",
"version": "1.1.6",
"version": "1.1.7",
"description": "Web Audio Graphs as a Stream",
"scripts": {
"build": "spago build",
Expand Down
10 changes: 6 additions & 4 deletions src/WAGS/Core.purs
Original file line number Diff line number Diff line change
Expand Up @@ -521,15 +521,17 @@ newtype Node :: Type -> Type -> Type -> Type
newtype Node outputChannels lock payload = Node (NodeC' lock payload)

sound
:: forall logic obj m lock
. Bolson.Entity logic obj m lock
-> Bolson.Child logic obj m lock
:: forall outputChannels lock payload
. Audible outputChannels lock payload
-> AudibleChild outputChannels lock payload
sound = Bolson.Insert

silence :: forall logic obj m lock. Bolson.Child logic obj m lock
silence :: forall outputChannels lock payload. AudibleChild outputChannels lock payload
silence = Bolson.Remove

type Audible outputChannels lock payload = Bolson.Entity Void (Node outputChannels lock payload) Effect lock
type AudibleChild outputChannels lock payload = Bolson.Child Void (Node outputChannels lock payload) Effect lock

--

newtype RealImg = RealImg { real :: Array Number, img :: Array Number }
Expand Down

0 comments on commit 3edc4e5

Please sign in to comment.