summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2015-12-03 23:05:56 -0500
committerAndrew Cady <d@jerkface.net>2015-12-03 23:05:56 -0500
commit15af2a70a9dec1d7b72f58e39832b8d6ba276c80 (patch)
tree2c0fb8a9bb1812854dfae81ba125bbed8edc9e5d
parentbb07239262278670136554693ab0dde56c184384 (diff)
parent9feca56426e0e785a4c1825faeb736dca01c9964 (diff)
fill out types in the reader environment
-rw-r--r--midi-dump.hs24
1 files changed, 15 insertions, 9 deletions
diff --git a/midi-dump.hs b/midi-dump.hs
index 0ed7ecb..ad9fd46 100644
--- a/midi-dump.hs
+++ b/midi-dump.hs
@@ -20,9 +20,15 @@ import Data.Int
20import Data.ByteString.Char8 (pack) 20import Data.ByteString.Char8 (pack)
21 21
22import Control.Concurrent.Chan 22import Control.Concurrent.Chan
23import Prelude hiding ((.)) 23import Prelude hiding ((.), id)
24import BasePrelude hiding (loop) 24import BasePrelude hiding (loop)
25 25
26import qualified Sound.ALSA.Sequencer.Address
27import qualified Sound.ALSA.Sequencer.Port
28import qualified Sound.ALSA.Sequencer.Queue
29import qualified Sound.ALSA.Sequencer
30
31
26verbose = False 32verbose = False
27 33
28main = main' `AlsaExc.catch` handler 34main = main' `AlsaExc.catch` handler
@@ -45,16 +51,16 @@ data LoopState = LoopState {
45} 51}
46 52
47data LoopEnv = LoopEnv { 53data LoopEnv = LoopEnv {
48 saver :: _, 54 saver :: Chan (Int64, Int64, [EVENT]),
49 sqlite :: _, 55 sqlite :: Connection,
50 startTime :: TimeSpec, 56 startTime :: TimeSpec,
51 startTimeReal :: TimeSpec, 57 startTimeReal :: TimeSpec,
52 h :: _, 58 h :: Sound.ALSA.Sequencer.T Sound.ALSA.Sequencer.DuplexMode,
53 public :: _, 59 public :: Sound.ALSA.Sequencer.Port.T,
54 private :: _, 60 private :: Sound.ALSA.Sequencer.Port.T,
55 q :: _, 61 q :: Sound.ALSA.Sequencer.Queue.T,
56 publicAddr :: _, 62 publicAddr :: Sound.ALSA.Sequencer.Address.T,
57 privateAddr :: _ 63 privateAddr :: Sound.ALSA.Sequencer.Address.T
58} 64}
59 65
60getAbsTime = do 66getAbsTime = do