浏览代码

stuff

master
Tiago Carvalho 3 年前
父节点
当前提交
19620148ba
共有 3 个文件被更改,包括 14 次插入2 次删除
  1. +7
    -2
      IRC/Connection.hs
  2. +4
    -0
      IRC/Plugins/Loader.hs
  3. +3
    -0
      IRC/Plugins/Tupfile

+ 7
- 2
IRC/Connection.hs 查看文件

@@ -2,7 +2,11 @@ module IRC.Connection where

import Data.Word (Word16)

--import qualified Network.Socket as S
import qualified Network.Socket as S

data Connection = Connection { connSocket :: S.Socket,
connNick :: String,
}

-- The host to connect to.
type Host = String
@@ -10,4 +14,5 @@ type Host = String
-- The port to connect to.
type Port = Word16

--connect :: S.Socket
connect :: Host -> Port
connect = error "unimplemented"

+ 4
- 0
IRC/Plugins/Loader.hs 查看文件

@@ -0,0 +1,4 @@
module IRC.Plugins.Loader where

test :: Int
test = 1

+ 3
- 0
IRC/Plugins/Tupfile 查看文件

@@ -0,0 +1,3 @@
include_rules

: foreach *.hs |> ghc $(GHCFLAGS) -c %f |> %B.o %B.hi

正在加载...
取消
保存