initial commit
This commit is contained in:
commit
1c76bd0b0a
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
**.o
|
||||||
|
**.hi
|
||||||
|
/.tup
|
||||||
|
/Main
|
13
IRC/Connection.hs
Normal file
13
IRC/Connection.hs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
module IRC.Connection where
|
||||||
|
|
||||||
|
import Data.Word (Word16)
|
||||||
|
|
||||||
|
--import qualified Network.Socket as S
|
||||||
|
|
||||||
|
-- The host to connect to.
|
||||||
|
type Host = String
|
||||||
|
|
||||||
|
-- The port to connect to.
|
||||||
|
type Port = Word16
|
||||||
|
|
||||||
|
--connect :: S.Socket
|
3
IRC/Tupfile
Normal file
3
IRC/Tupfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
include_rules
|
||||||
|
|
||||||
|
: foreach *.hs |> ghc $(GHCFLAGS) -c %f |> %B.o %B.hi
|
7
Main.hs
Normal file
7
Main.hs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module Main where
|
||||||
|
|
||||||
|
main :: IO ()
|
||||||
|
main = cena
|
||||||
|
|
||||||
|
cena :: IO ()
|
||||||
|
cena = putStrLn "ganda cena mano"
|
4
Tupfile
Normal file
4
Tupfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
include_rules
|
||||||
|
|
||||||
|
: foreach *.hs |> ghc $(GHCFLAGS) -c %f |> %B.o %B.hi
|
||||||
|
: *.o IRC/Connection.o |> ghc -o Main %f |> Main
|
1
Tuprules.tup
Normal file
1
Tuprules.tup
Normal file
@ -0,0 +1 @@
|
|||||||
|
GHCFLAGS += -Wall -O3
|
Loading…
Reference in New Issue
Block a user