Skip to content

Commit

Permalink
etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ejconlon committed Jan 29, 2024
1 parent d006eac commit d13ad4b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
21 changes: 18 additions & 3 deletions BootDirt.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
:set -fno-warn-orphans
:set -fno-warn-name-shadowing
:set -XOverloadedStrings
:set prompt "> "
:set prompt-cont "| "

import Minipat.Dirt.Prelude qualified as P
import Data.Ratio ((%))
import Minipat.Base
import Minipat.Dirt.Core qualified as C

st <- P.initSt P.defaultEnv
st <- C.initSt C.defaultEnv

getCps = C.getCps st
getAhead = C.getAhead st
getPlaying = C.getPlaying st
getPat = C.getPat st
getCycle = C.getCycle st
getTempo = C.getTempo st

setCps = C.setCps st
setPlaying = C.setPlaying st
setPat = C.setPat st
setCycle = C.setCycle st
setTempo = C.setTempo st

2 changes: 1 addition & 1 deletion minipat-dirt/minipat-dirt.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ source-repository head

library
exposed-modules:
Minipat.Dirt.Core
Minipat.Dirt.Osc
Minipat.Dirt.Prelude
Minipat.Dirt.Resources
other-modules:
Paths_minipat_dirt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}

module Minipat.Dirt.Prelude where
module Minipat.Dirt.Core where

import Control.Applicative (empty)
import Control.Concurrent (forkFinally)
Expand All @@ -27,7 +27,6 @@ import Nanotime
( PosixTime (..)
, TimeDelta
, TimeLike (..)
, showPosixTime
, threadDelayDelta
, timeDeltaFromFracSecs
)
Expand Down

0 comments on commit d13ad4b

Please sign in to comment.