Browse Source

initial commit

master
Tiago Carvalho 3 years ago
commit
1c76bd0b0a
6 changed files with 32 additions and 0 deletions
  1. +4
    -0
      .gitignore
  2. +13
    -0
      IRC/Connection.hs
  3. +3
    -0
      IRC/Tupfile
  4. +7
    -0
      Main.hs
  5. +4
    -0
      Tupfile
  6. +1
    -0
      Tuprules.tup

+ 4
- 0
.gitignore View File

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

+ 13
- 0
IRC/Connection.hs 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
- 0
IRC/Tupfile View File

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

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

+ 7
- 0
Main.hs View File

@@ -0,0 +1,7 @@
module Main where

main :: IO ()
main = cena

cena :: IO ()
cena = putStrLn "ganda cena mano"

+ 4
- 0
Tupfile 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
- 0
Tuprules.tup View File

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

Loading…
Cancel
Save