Custom Query (7504 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (10 - 12 of 7504)

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Ticket Resolution Summary Owner Reporter
#10 Invalid undefined reference to `Main_main_closur nobody nobody
Description
Prelude> :! ghc -o nuevo c:\windows\desktop\Comp.hs
C:/GHC/libHSstd.a(PrelMain__1.o)
(.text+0x16)://c/tmp/ghc1756.hc: undefined refer
ence to `__stginit_Main'
C:/GHC/libHSstd.a(PrelMain__2.o)
(.text+0x4)://c/tmp/ghc1756.hc: undefined refere
nce to `Main_main_closure'
C:/GHC/libHSstd.a(PrelMain__2.o)
(.text+0x33)://c/tmp/ghc1756.hc: undefined refer
ence to `Main_main_closure'

#11 Fixed No error from --make -o out when no main simonmar rrt
Description
If you run ghc --make [some .hs files] -o [output] and there is no Main.main, ghc doesn't complain, and silently doesn't produce an executable.
#12 Fixed Function missing ? nobody nobody
Description
Dear Bug-hunters, 

In the documentation of 'Socket' the following is
defined :

data PortID = PortNumber PortNumber | ... -- excluded
the rest...
data PortNumber -- instance of ...
mkPortNumber    :: Int -> PortNumber

But 'mkPortNumber' is *NOT* present in the actual
implementation, which presents me with the problem that
I cannot convert an Int to a PortNumber (or PortID,
which 
is what is actually needed...).

Here is a (minimal) example of my intended usage 
(in a module intended to encapsulate communication to a 
server in a specific protocol...) :

myConnect :: String -> Int -> IO MyConnection
myConnect server port = do
    sock <- connectTo server (PortNumber (mkPortNumber
port))
    return sock

I may be that I'm in error here, but I strongly feel
that
something is missing from the 'Socket' library...

Kind Regards, Alex...


1 2 3 4 5 6 7 8 9 10 11 12 13 14
Note: See TracQuery for help on using queries.