#haskell - Mon 19 Feb 2007 between 00:23 and 00:29

NY Lost Funds



TBIs there a function to get the nth item in a List? (I've looked to some Prelude docs, but can't find it :()
?
donsthe svn checkout in yhc seems to break
that's what you get for including svn lines in your configure script. mhwhaha
jcreighwait, the buld process of yhc does an svn checkout?
ivanmTB: lst !! (n-1)?
dons> [1..10] !! 2
lambdabot3
jcreighs/an/a/
dons?hoogle [a] -> Int -> a
lambdabotPrelude.(!!) :: [a] -> Int -> a
donsTB, ^^ hoogle is your friend :-)
gotakuCan you deallocate an array created with mallocArray?
Stingerbinding something in a do doesnt force evaluation order does it
donsgotaku: yeah.
allbery_bfwiw, I'm running the ghc test suite on 6.7, all the C tests are failing
donsallbery_b: yeah, as of last week. something broke
allbery_byes, I know
actionsorear had the honor of reporting it
sorearhad the honor of reporting it
allbery_bsomeone asked earlier why the ghc regression testing wasn't catching it; turns out it is
gotakudons: How?
sorearallbery_b: it wasn't catching it because noone bothered to run it :)
gotaku: free
@hoogle free
lambdabotForeign.Marshal.Alloc.free :: Ptr a -> IO ()
Foreign.Ptr.freeHaskellFunPtr :: FunPtr a -> IO ()
Foreign.StablePtr.freeStablePtr :: StablePtr a -> IO ()
sorearthe first on
+e
allbery_b(hm, ghci tests are also losing, I wonder if I did something wrong)
soreardons: hehe. gsfib calculates the 100 millionth fib in effectively the same amount of time on ghc and yhc. Three guesses why :)
gotakusorear: Are you sure free works with mallocArray?
allbery_bbut the other tests all seem to pass
soreargotaku: pretty sure ...
Haskell is not C++
:)
gotakusorear: The docs don't mention it...
donssorear: yhc crashes?
gotakuFree a block of memory that was allocated with malloc, mallocBytes, realloc, reallocBytes, new or any of the newX functions in Foreign.Marshal.Array or Foreign.C.String.
dons?docs Foreign.Marshall.Array

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 

IrcArchive

NY Lost Funds