diff options
author | tv <tv@shackspace.de> | 2014-12-30 14:38:33 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-12-30 14:38:33 +0100 |
commit | 424f1589137f994cbf8041f8d11d3aaaed5605a1 (patch) | |
tree | 6c9ce092e17adb552e5faee2613fb655dd16b7c4 | |
parent | 9c2ee6b0bc7b74031439901283190bf58e8a46ce (diff) |
move data Event to separate module
-rw-r--r-- | Event.hs | 13 | ||||
-rw-r--r-- | test5.hs | 8 |
2 files changed, 14 insertions, 7 deletions
diff --git a/Event.hs b/Event.hs new file mode 100644 index 0000000..415422c --- /dev/null +++ b/Event.hs @@ -0,0 +1,13 @@ +module Event + ( Event (..) + ) where + +import Trammel + + +data Event = + EFlash (Trammel String) | + EKey String | + EReload | + EResize Int Int + deriving Show @@ -19,6 +19,7 @@ import Control.Monad import Data.Maybe import Data.Monoid import Data.Time +import Event import Scanner (getKey) import System.Directory import System.Environment @@ -35,13 +36,6 @@ import TreeViewRaw import Utils -data Event = - EFlash (Trammel String) | - EKey String | - EReload | - EResize Int Int - deriving Show - data State = State { cursor :: Z.TreePos Z.Full TreeView |