commit 1c76bd0b0aebc60e241b8f46be613eb744f95c69 Author: Tiago Carvalho Date: Tue Jul 21 23:59:30 2020 +0100 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed78779 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +**.o +**.hi +/.tup +/Main diff --git a/IRC/Connection.hs b/IRC/Connection.hs new file mode 100644 index 0000000..6edd591 --- /dev/null +++ b/IRC/Connection.hs @@ -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 diff --git a/IRC/Tupfile b/IRC/Tupfile new file mode 100644 index 0000000..b3de054 --- /dev/null +++ b/IRC/Tupfile @@ -0,0 +1,3 @@ +include_rules + +: foreach *.hs |> ghc $(GHCFLAGS) -c %f |> %B.o %B.hi diff --git a/Main.hs b/Main.hs new file mode 100644 index 0000000..80ea950 --- /dev/null +++ b/Main.hs @@ -0,0 +1,7 @@ +module Main where + +main :: IO () +main = cena + +cena :: IO () +cena = putStrLn "ganda cena mano" diff --git a/Tupfile b/Tupfile new file mode 100644 index 0000000..55e49ee --- /dev/null +++ b/Tupfile @@ -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 diff --git a/Tuprules.tup b/Tuprules.tup new file mode 100644 index 0000000..2801544 --- /dev/null +++ b/Tuprules.tup @@ -0,0 +1 @@ +GHCFLAGS += -Wall -O3