This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude | |
import Data.NonEmpty ((:|)) | |
import Effect (Effect) | |
import Halogen.Storybook (Stories, runStorybook, proxy) | |
import Type.Proxy (Proxy(..)) | |
import WAGS.Lib.Learn (buffers, component, using, usingc, play) | |
import WAGS.Lib.Learn.Duration (crochet, crochetRest, dottedMinim, minim, semibreve) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude | |
import Data.Foldable (fold) | |
import Effect (Effect) | |
import TryPureScript (h1, h2, p, text, list, indent, link, render, code) | |
import Data.Generic.Rep (class Generic, Argument(..), Constructor(..), Product(..), from) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module WAGS.Control.Thunkable where | |
import Prelude | |
import Control.Alternative (class Alt, class Alternative, class Plus, alt, empty) | |
import Data.Traversable (class Foldable, class Traversable, foldMapDefaultR, sequence, traverseDefault) | |
import Data.Tuple (Tuple(..)) | |
data Thunkable a | |
= Here a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Test.RunCodegen where | |
import Prelude | |
import Control.Monad.Free (Free, liftF) | |
import Data.Functor.Variant (FProxy(..)) | |
import Data.Generic.Rep (class Generic, Argument(..), Constructor(..), Product(..), Sum(..)) | |
import Data.Generic.Rep (to) as Generics.Rep | |
import Data.Symbol (class IsSymbol) | |
import Prim.Row (class Cons, class Lacks) as Row | |
import Prim.Symbol (class Cons) as Symbol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Klank.Dev where | |
import Prelude | |
import Color (rgba) | |
import Control.Monad.Reader (Reader, ask, asks, runReader) | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) | |
import Data.Int (toNumber) | |
import Data.List (List(..), catMaybes, fold, (:)) | |
import Data.Maybe (Maybe(..), isJust) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Klank.Dev where | |
-- new to purescript? check out https://www.purescript.org/ for learning resources! | |
import Prelude | |
import Data.List ((:), List(..)) | |
import Data.NonEmpty ((:|)) | |
import Data.Typelevel.Num (D1) | |
import FRP.Behavior (Behavior) | |
import FRP.Behavior.Audio (AudioUnit, gain', runInBrowser_, play, sinOsc, speaker) | |
import Math (pi, sin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Klank.Dev where | |
-- new to purescript? check out https://www.purescript.org/ for learning resources! | |
import Prelude | |
import Data.Typelevel.Num (D1) | |
import FRP.Behavior (Behavior) | |
import FRP.Behavior.Audio (AudioUnit, gain', runInBrowser_, sinOsc, speaker') | |
scene :: Behavior Number -> Behavior (AudioUnit D1) | |
scene _ = pure (speaker' $ (gain' 0.5 $ sinOsc 440.0)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
binaries: [ | |
"n@Add''_1_1", | |
"n@Gain''_2_2", | |
"n@Gain''_2_5", | |
"n@Gain''_6_2", | |
"n@Gain''_6_5", | |
"n@SinOsc''_3_3", | |
"n@SinOsc''_3_4", | |
"n@SinOsc''_3_6", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let fold = https://prelude.dhall-lang.org/List/fold | |
let filter = https://prelude.dhall-lang.org/List/filter | |
let equal = https://prelude.dhall-lang.org/Natural/equal | |
let Obj = <User | Pet | List> | |
let Key = <Id | Type | Name | Pets | Head | Tail> | |
let Entry = <Int_: Integer | Bool_: Bool | Double_: Double | Text_: Text | Id_: Natural | Type_: Obj | Nil> | |
let Row = { ptr: Natural, key: Key, val: Entry } | |
let Db = List Row |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude | |
import Data.Lens (Iso, _1, _2, iso) | |
import Data.Profunctor (class Profunctor) | |
import Data.Profunctor.Costrong (class Costrong, unfirst, unsecond) | |
import Data.Profunctor.Strong (class Strong, first) | |
import Data.Tuple (Tuple(..), fst, snd) | |
import Effect (Effect) | |
import Effect.Console (log) |