File: Wire.hs

package info (click to toggle)
haskell-netwire 5.0.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: haskell: 1,326; makefile: 2
file content (53 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- |
-- Module:     Control.Wire
-- Copyright:  (c) 2013 Ertugrul Soeylemez
-- License:    BSD3
-- Maintainer: Ertugrul Soeylemez <es@ertes.de>

module Control.Wire
    ( -- * Reexports
      module Control.Wire.Core,
      module Control.Wire.Event,
      module Control.Wire.Interval,
      module Control.Wire.Run,
      module Control.Wire.Session,
      module Control.Wire.Switch,
      module Control.Wire.Time,

      -- * Convenient type aliases
      WireP,
      SimpleWire,

      -- * External
      module Control.Applicative,
      module Control.Arrow,
      module Control.Category,
      module Data.Semigroup,
      Identity(..),
      NominalDiffTime
    )
    where

import Control.Applicative
import Control.Arrow
import Control.Category
import Control.Wire.Core
import Control.Wire.Event
import Control.Wire.Interval
import Control.Wire.Run
import Control.Wire.Session
import Control.Wire.Switch
import Control.Wire.Time
import Data.Functor.Identity
import Data.Semigroup
import Data.Time.Clock


-- | Pure wires.

type WireP s e = Wire s e Identity


-- | Simple wires with time.

type SimpleWire = Wire (Timed NominalDiffTime ()) () Identity