initial commit

This commit is contained in:
Tiago Carvalho 2020-07-21 23:59:30 +01:00
commit 1c76bd0b0a
6 changed files with 32 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
**.o
**.hi
/.tup
/Main

13
IRC/Connection.hs Normal file
View 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
View File

@ -0,0 +1,3 @@
include_rules
: foreach *.hs |> ghc $(GHCFLAGS) -c %f |> %B.o %B.hi

7
Main.hs Normal file
View File

@ -0,0 +1,7 @@
module Main where
main :: IO ()
main = cena
cena :: IO ()
cena = putStrLn "ganda cena mano"

4
Tupfile Normal file
View 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
View File

@ -0,0 +1 @@
GHCFLAGS += -Wall -O3