This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
vim
/
hs-irc
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
initial commit
master
Tiago Carvalho
3 years ago
commit
1c76bd0b0a
6 changed files
with
32 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
.gitignore
+13
-0
IRC/Connection.hs
+3
-0
IRC/Tupfile
+7
-0
Main.hs
+4
-0
Tupfile
+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
Write
Preview
Loading…
Cancel
Save