have you looked at pfp, the haskell probabilistic functional programming
library ?
http://web.engr.oregonstate.edu/~erwig/pfp/
the paper
http://web.engr.oregonstate.edu/~erwig/papers/abstracts.html#JFP06a
describes modeling various statisticy things this way, like tree growth
and the monty
PROTECTED], Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe@haskell.org
Subject
Re: [Haskell-cafe] monte carlo trouble
Thanks for your replies.
I actually starting out returning a single element instead. But a
given lookup might return [], and the only way I could think of to
handle
I have gotten ghc 6.7 to compile, but not with extra libs. I'm on linux
x86, ubuntu.
Can someone suggest a download date that worked for them, or how to fix
one or more of the problems described below?
When I build from source (this is for august 2, unknown linux, as conal
spoke well of it
[EMAIL PROTECTED]:~cat test.hs
import Debug.Trace
foo = foldl (\first second -
(trace ( first: ++ ( show first) ) first)
+
(trace ( second: ++ (show second) ) second) ) 0 [1,2,3]
bar = foldl (+)
traceIt x = trace (\nTraceIt:\n++show x++\n) x
[EMAIL PROTECTED]:~ghc -e foo test.hs
first:
or actually just...
[EMAIL PROTECTED]:~cat test.hs
import Debug.Trace
foo = foldl (\first second -
trace ( ( show first) ++ (+) ++ (show second ) )
( first + second) ) 0 [1,2,3]
[EMAIL PROTECTED]:~ghc -e foo test.hs
0+1
1+2
3+3
6
[EMAIL PROTECTED]:~
is probably better
Thomas Hartman
I'm trying to build the latest regex base, which is required for the other
regex packages under ghc 6.7
It complains that it can't find Data.Sequence, because it's in a hidden
module containers. I added containers to the cabal depends as can be seen
in the grep below.
And containers isn't
PROTECTED]
08/17/2007 03:00 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe haskell-cafe@haskell.org
Subject
Re: [Haskell-cafe] trouble building regex-base 0.91 on ghc 6.7
On Fri, Aug 17, 2007 at 02:40:33PM -0400, Thomas Hartman wrote:
I'm trying to build the latest regex base, which
trying to compile regex-tdfa, I ran into another issue. (earlier I had a
cabal problem but that's resolved.)
there's a line that won't compile, neither for ghc 6.6.1 nor 6.7
import
GHC.Prim(MutableByteArray#,RealWorld,Int#,sizeofMutableByteArray#,unsafeCoerce#)
so the fresh darcs regex tdfa
, bytestring
}
Stefan O'Rear [EMAIL PROTECTED]
08/17/2007 04:47 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe haskell-cafe@haskell.org
Subject
Re: [Haskell-cafe] trouble compiling import GHC.Prim(MutableByteArray#,
. (building regex-tdfa from darcs) -- what's that # sign
cafe, is there a way to patch the build-depends line of a cabal file
without breaking backwards compatibility?
I just patched HDBC head to compile under ghc 6.7. Unfortunately it now
won't compile in 6.6.1.
is there a way for build-depends to detect which version of ghc you're on?
also I
problemw with the -I flag to ghc are causing cabal install to fail for
hdbc-odbc (darcs head).
man ghc still reports that -I is a valid flag after installing ghc 6.7
from darcs head a couple days ago.
I think the problem might be the space after the -I flag (which is bad for
both 6.6.1 and
so you get
$ runghc Setup.hs configure
Setup.hs: Multiple description files found. Please use only one of :
[HaXml.cabal,HaXml-darcs.cabal]
is there a way to specify which cabal file should be used, or do you just
have to move a file out out the way with eg
mv HaXml.cabal HaXml.cabal.tmp
Thomas Schilling [EMAIL PROTECTED]
08/20/2007 01:37 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe haskell-cafe@haskell.org
Subject
Re: [Haskell-cafe] is there a way to patch the build-depends line of a
cabal file without breaking backwards compatibility?
On 20 aug 2007, at 18.37
I'm doing a lot of switching between ghc 6.6 and ghc 6.7 on the same
computer. I install modules using
$ runghc Setup.hs configure
etc.
I would like to specify which version of ghc should be getting the package
installed via the f flag to runghc
$
Main ( arghandling-nice.hs, interpreted )
Ok, modules loaded: Main.
*Main Loading package haskell98 ... linking ... done.
1 2 3
*Main Leaving GHCi.
Thomas Hartman [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
08/22/2007 01:38 PM
To
haskell-cafe@haskell.org haskell-cafe@haskell.org
cc
Maybe this is by design, but I just thought I would point this behavior
out and ask for comment.
test1 merely shows that runInteractiveCommand reacts differently to perl
warnings than perl errors. Okay, maybe the inconsistency in that case is
due to perl and not haskell.
test2 behaves the
was: ghc -c -I dist/build/Database/HDBC/ODBC/Connection_hsc_make.c
-o dist/build/Database/HDBC/ODBC/Connection_hsc_make.o
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
Duncan Coutts [EMAIL PROTECTED]
08/22/2007 04:53 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell
,[-D__GLASGOW_HASKELL__=606,--cflag=-I,--lflag=-lodbc,-o,dist/build/Database/HDBC/ODBC/Connection.hs,Database/HDBC/ODBC/Connection.hsc])
*** Exception: exit: ExitFailure 1
*Main Leaving GHCi.
Duncan Coutts [EMAIL PROTECTED]
08/28/2007 08:08 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe
I probably should have also mentioned that the fail on windows is for me
ssh-ed to that box remotely, where the sshd program is cygwin.
Thomas Hartman [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
08/28/2007 06:03 PM
To
haskell-cafe@haskell.org
cc
Subject
[Haskell-cafe
I'm trying to compile regex-posix on ghc 6.7. (Ultimate goal: happs on
6.7).
First, I patched by changing the cabal file to be compatible with the new
libraries broken out of base. I also had to add HsRegexPosixConfig.h to
include/regex (I just copied it from somewhere else on my hard drive
After much progress and learning, I'm stuck again trying to get happs to
compile under ghc 6.7. (Hoping that running happs under the new ghc
debugger will help me understand it better.)
I was trying to compile from the stable 8.8 version, unzipped and with
just a few modifications. (see
If you are on linux (I'm on ubuntu) you should be able to set
export http_proxy=http://proxyserver.com:1234
export https_proxy=http://proxyserver.com:123
vars, per what your sysadmin says. In my case, these are set to the same
var that permits me to use firefox via the proxy, in firefox -
happs on ghc 6.7 won't work because of dependency on Data.Binary, since
everything that depends on Data.Binary is broken at present.
This is for Data.Binary installed via cabal from darcs get --partial
http://darcs.haskell.org/binary . Cabal installed without any errors, but
perhaps there
: include
+Include-Dirs: include/regex
}
Chris Kuklewicz [EMAIL PROTECTED]
08/30/2007 12:34 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe@haskell.org, [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject
Re: trouble compiling regex posix head (I think 0.92) on ghc 6.7
Thomas
you may find this helpful.
Sukit Tretriluxana [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
08/31/2007 12:19 PM
To
haskell-cafe@haskell.org
cc
Subject
[Haskell-cafe] GHC 6.6.1 binary package for Ubuntu available?
Hi,
I am wondering if there is the binary package for GHC 6.6.1 for
you may find this helpful. (with link)
http://www.haskell.org/pipermail/haskell-cafe/2007-April/024137.html
Sukit Tretriluxana [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
08/31/2007 12:19 PM
To
haskell-cafe@haskell.org
cc
Subject
[Haskell-cafe] GHC 6.6.1 binary package for Ubuntu
you may want to generate the .deb rather than take the deb that was
packaged for gutsy.
http://www.haskell.org/pipermail/haskell-cafe/2007-April/024137.html
pupeno's guide to do this:
http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/
Anatoly Yakovenko [EMAIL PROTECTED]
Sent by:
did you have a look at the pupeno blog link? He suggests using fakeroot
apt-get source build.
Not sure why the fakeroot, but perhaps it makes a difference.
thomas.
Anatoly Yakovenko [EMAIL PROTECTED]
08/31/2007 01:56 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe@haskell.org
In the latest happs (darcs pulled, updated head is 0.9.1 iirc), I am
experimenting with the example file in src/HAppS/Examples/HTTP1.hs.
I would like to combine state with io. Eventually io will mean stuff like
reading from a database, but for now I'm just reading a file.
The example file
I think you want something like this
{-# OPTIONS -fglasgow-exts #-}
f :: (Integer, Float) - Integer
f (a,b) = a * floor (10/b)
lst :: [(Integer, Integer)]
lst = [(a ^ 2 + b ^ 2, a) | a - [1..4], b - [1..4], a^2 + b^2 20, b =
a]
lst3 = map (f) ( map ( intTupToFloatTup ) lst )
I think at some intermediate stage that flag helped me compile, but in the
final version it's unnecessary.
my bad.
Thomas Hartman [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/05/2007 06:29 PM
To
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED], haskell-cafe@haskell.org, Tomi Owens
[EMAIL
+ newlinetobr x = [x]
+
+f =^ g = f = return . g
}
Martin Lütke [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/01/2007 07:04 PM
To
haskell-cafe@haskell.org
cc
Subject
[Haskell-cafe] Re: wanted: HAppS example combining state and io
Thomas Hartman thomas.hartman at db.com
Instead, I think
several people should make their own personal list of libraries they
would vouch for
Ideally along with a cabal (or otherwise) install script that would set
everything up in one step.
Neil Mitchell [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/18/2007 09:02 AM
To
as provided, this won't compile because v hasn't been defined.
f [] = 0
f (x:xs) = x . f xs
compiles but gives
f :: (Num (a - c)) = [c - c] - a - c
which seems wrong. maybe I'm not understanding what v is not supposed to
be.
I am thinking maybe you want iterate
*Main take 5 $ iterate (+1)
I came up with the following functions to do reverse. The first one
is obviously bad, because of the expensive list concat. The last one,
myreverse, I think is the reference implementation you get in the
prelude. The ones between, I'm not so sure. I suspect they're naive
as the name indicates, but
how about this, for wordSize? I used quickcheck to verify that my
wordSize2 is the same as yours.
Actually, it's not! if you allow negative integers in the list, it's not
at any rate. (falsifiable after 50 tries)
I haven't thought through what this means... if your function isn't quite
right,
not trying to start a flame war here, but I had pretty good success with
apt-get and ubuntu.
however, I admit I never really got lambdabot to work.
if you install from source you can have 6.6, 6.6.1 and 6.4 all installed
at the same time.
you just need to create simlinks for the old versions.
stuff from source :)
t.
Lihn, Steve [EMAIL PROTECTED]
10/12/2007 05:38 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe@haskell.org, [EMAIL PROTECTED]
Subject
RE: [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux
are you certain haddock depends on lambdabot
dons's blog entry on parsing dates might point somewhere useful
http://cgi.cse.unsw.edu.au/~dons/blog/2006/11/12#rpn-reloaded
t.
Don Stewart [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/15/2007 08:25 PM
To
Justin Bailey [EMAIL PROTECTED]
cc
Haskell-Cafe haskell-cafe@haskell.org
Subject
not quite the same issue, but you might be interested by
http://people.cs.uu.nl/stefan/blog/00012.html which notes:
Prelude let apply = \f x - f x
Prelude let apply' = \f - f
Prelude apply undefined `seq` ()
()
Prelude apply' undefined `seq` ()
*** Exception: Prelude.undefined
mulling
a good sanity check for saneness of two fxs is to quickcheck them, as I
believe I provided an example to for a previous question of yours.
Though I think in this case that's impossible because, as someone else
pointed out, not even the function tyes agree.
t.
PR Stanley [EMAIL PROTECTED]
Indeed, I don't want to waste time but have no choice (rpm needs root),
not sure if this'll help (never tried it myself) but this claims there's a
non-root way to use rpm
http://www.techonthenet.com/linux/build_rpm.php
cheers, t.
---
This e-mail may contain confidential and/or privileged
I wanted to generate some random table data, and decided to use quickcheck
to do this. I didn't want to be checking properties, I actually wanted to
output the examples that quickcheck came up with using arbitrary. In this
case, I wanted to generate lists of lists of strings.
In case this is
Since I'm interested in the stack overflow issue, and getting acquainted
with quickcheck, I thought I would take this opportunity to compare your
ordTable with some code Yitzchak Gale posted earlier, against Ham's
original problem.
As far as I can tell, they're the same. They work on lists up
PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe@haskell.org, [EMAIL PROTECTED]
Subject
Re: [Haskell-cafe] Re: Suspected stupid Haskell Question
Hmm, is insertWith' new? If I remember right, I think the stack overflows
were happening because Map.insertWith isn't strict enough
It has been noted in a few places that the 2 line quicksort demo in the
Introduction section of the haskell wiki
http://www.haskell.org/haskellwiki/Introduction
isn't a real quicksort, and wouldn't scale well with longer lists.
Interested, and wanting to put my recently learned test data
another point: deforested treesort is slower.
[EMAIL PROTECTED]:~/ProjectRepos/learning/quicksorttime ghc -e test
treeSort' 6 quicksort
100
real4m3.615s
user1m59.525s
sys 0m0.587s
The commented indicated that
-- If you deforest this algorithm (removing the intermediate tree
If I understand list comprehensions correctly, what you wrote is the same
as
do a - ab;
b - 12;
[a:[b]]
which is the same as
ab == \a - do b - 12; [a:[b]]
which is the same as
ab = \a - 12 = \b - [a:[b]]
which is the same as
concat $ map ( \a - 12 = \b - [a:[b]] ) ab
I would love an answer to this as well.
Isaac Dupree [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/27/2007 06:48 PM
To
Haskell-cafe haskell-cafe@haskell.org
cc
Subject
[Haskell-cafe] viewing HS files in Firefox
When I try to go to one of the Module.hs files, e.g. on
I have a situation where
... stuff...
$(expose ['setState, 'getState]
f = SetState
compiles but
f = SetState
$(expose ['setState, 'getState]
doesn't compile, with error: Not in scope: data constructor 'SetState.
Is this a bug?
expose is defined in HAppS.State.EventTH
t,.
---
This e-mail
This minimal program below fails in 6.8.1, works for 6.6.1, for up to date
HDBC-ODBC-1.1.3. (I tried installing both from package and from darcs
head)
Installed and running from cygwin.
When I run it as runghc fail.hs I get a windows popup error ghc.exe has
encountered a problem and needs to
Batteries included, I could take it or leave it.
Where I think hackage could really benefit from copying perl strategy is
automated testing of *all* packages under hackage darcs, not just blessed
packages.
If this could be integrated into the buildbot of whatever ghc is under
development
the php documentation has user contributed notes where people can leave
sniplets of useful code as comments, eg
http://www.php.net/manual/en/introduction.php
I think this is a very nice feature.
Henning Thielemann [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/19/2007 05:21 PM
To
Haskell
I was able to compile and play space invaders on linux.
Hours of fun for the whole family :)
thomas.
Peter Verswyvelen [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/20/2007 06:46 AM
Please respond to
[EMAIL PROTECTED]
To
Don Stewart [EMAIL PROTECTED]
cc
Haskell-Cafe
I'm having the devil of a time getting yhc to install.
http://hpaste.org/4028
or for posterity
[EMAIL PROTECTED]:~/yhc-install/yhcscons
... blah blah blah...
Compiling PreludeAux ( src/packages/yhc-base-1.0/PreludeAux.hs )
YHC_build([src/packages/yhc-base-1.0/Foreign/Util.hbc],
dons did a blog post about a shell monad which I think does what you ask.
http://cgi.cse.unsw.edu.au/~dons/blog/2007/03
very nice, I use it myself.
t.
2007/11/22, Maurício [EMAIL PROTECTED]:
Hi,
How can I call a program (like, for instance,
'grep text *') and get the standard output?
All
I think I'm running into more or less the same issue discussed at
http://bloggablea.wordpress.com/2007/04/24/haskell-records-considered-grungy/
Just wondering if I missed anything, or if any of the ideas
considering better records setter/getters have been implemented in the
meantime.
t.
Looks very cool. So I tried playing with this code, unfortunately
couldn't get it to compile.
Could you double check that what you posted compiles, and if it does,
any idea what I'm doing wrong?
This is with
{-# OPTIONS -fglasgow-exts -fallow-undecidable-instances #-}
thanks, t.
Prelude :r
fwiw, if I comment those two lines around 141 out, it compiles.
t.
2007/11/24, Thomas Hartman [EMAIL PROTECTED]:
Looks very cool. So I tried playing with this code, unfortunately
couldn't get it to compile.
Could you double check that what you posted compiles, and if it does,
any idea what
that did it, thanks.
2007/11/24, Brent Yorgey [EMAIL PROTECTED]:
-- Just for fun, make it work with StateT as well
-- (needs -fallow-undecidable-instances)
instance (Monad (t m), MonadTrans t, MonadPrompt p m) = MonadPrompt p
(tm) where
prompt = lift . prompt
Looks like
wrote:
Yhc people:
On Nov 21, 2007 8:46 PM, Thomas Hartman [EMAIL PROTECTED] wrote:
I'm having the devil of a time getting yhc to install.
http://hpaste.org/4028
or for posterity
[EMAIL PROTECTED]:~/yhc-install/yhcscons
... blah blah blah...
Compiling PreludeAux ( src
OK, I struggled through the instructions at
http://haskell.org/haskellwiki/Yhc/Javascript/Users_guide#Downloading
and am getting tripped up at
(cd src/translator/js; make all install)
any advice?
... blah blah blah
ghc --make -i../../../depends/filepath splitter.hs -o
the makefile. I'll also
volunteer to the buildbot.
FWIW, this shouldn't affect ubuntu dapper (long term support) as they
still do the expected thing with sh.
thomas.
2007/11/24, Brandon S. Allbery KF8NH [EMAIL PROTECTED]:
On Nov 24, 2007, at 17:07 , Thomas Hartman wrote:
ltag
, version 6.8.1
[EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/jsghc-pkg
list | grep -i filepath
filepath-1.1.0.0, (ghc-6.8.1), haskell-src-1.0.1.1,
2007/11/25, Brandon S. Allbery KF8NH [EMAIL PROTECTED]:
On Nov 25, 2007, at 9:45 , Thomas Hartman wrote:
Feisty devs
- return $ getDirectory $ getDirectory x
+Just x - return $ dropFileName x
}
2007/11/25, Thomas Hartman [EMAIL PROTECTED]:
I got through this hurdle following suggestions at
https://wiki.ubuntu.com/DashAsBinSh
SHELL = /bin/bash at the top of the main makefile did not work, and I
It would be really helpful if you could include this (and other)
examples in an /examples directory under
src/translator/js
in the yhc darcs distribution, with working makefiles that validate
against the buildbot.
Something seems a bit off for me, probably forgot a tilde somewheres.
t.
/Directory.hs
src/tester/Main.hs
tests/conformance98/Directory/getDirContents/Main.hs
best, thomas.
2007/11/25, Dimitry Golubovsky [EMAIL PROTECTED]:
Thomas,
On Nov 25, 2007 5:50 PM, Thomas Hartman [EMAIL PROTECTED] wrote:
Thanks Dmitri, I also had to fix an issue with System.FilePath,
there's
it fails.
Thank you.
On 11/26/07, Thomas Hartman [EMAIL PROTECTED] wrote:
still having problems darcs pulling your updates, related to
System.FilePath.
did you make clean and then make again?
I darcs pulled everything.
(cd src/translator/js; make all install)
... ...
(cd
mailing list: pull
patches, then do scons fullclean. Or re-check the whole repo out,
which is basically the same.
Thanks.
On 11/26/07, Thomas Hartman [EMAIL PROTECTED] wrote:
False alarm.
I rm -rf ed yhhc, fresh darcs got the latest yhc, reinstalled yhc, and redid
(cd src/translator
that I'll roll back to plain CPS.
On 11/26/07, Thomas Hartman [EMAIL PROTECTED] wrote:
It would be really helpful if you could include this (and other)
examples in an /examples directory under
src/translator/js
--
Dimitry Golubovsky
Anywhere on the Web
As I mentioned in a previous post, I've been spending quite some time
trying to get live with ycr2js because there's a project it would be
useful for for my day job, as well as making another nice demo to add
to the list.
Basically, I have some functionality that does client-side filtering
of
Fair enough, I can wait for a couple of days.
You might want to fix
[EMAIL
PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js/testdarcs
whatsnew
{
hunk ./src/translator/js/test/Makefile 12
- $(YHC) -includes ../lib/haskell -linkcore $
+ $(YHC) --includes ../lib/haskell
put
{-# OPTIONS_GHC -fglasgow-exts #-}
at the the top of the file that complains.
Jim Stuttard [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/28/2007 08:06 AM
Please respond to
[EMAIL PROTECTED]
To
Haskell-Cafe@haskell.org
cc
Subject
[Haskell-cafe] RFI: HDBC-1.1.3 build error
@haskell.org
cc
Subject
Re: [Haskell-cafe] Progress indications
On Wed, Nov 28, 2007 at 05:58:07PM -0500, Thomas Hartman wrote:
maybe Debug.Trace? like...
import Debug.Trace
t = foldr debugf 0 [1..1]
f :: Int - Int - Int
f = (+)
-- same typesig as f
debugf :: Int - Int - Int
debugf
A translation of
http://www.ahinea.com/en/tech/perl-unicode-struggle.html
from perl to haskell would be a very useful piece of documentation, I
think.
That explanation really helped me get to grips with the encoding stuff, in
a perl context.
thomas.
Duncan Coutts [EMAIL PROTECTED]
Sent
] )
monitorprogress f xs = map g $ zip [1..] xs
where g (i,a) | f i == True = trace (show i) a
| otherwise = a
f x | x `mod` 1000 == 0 = True
| otherwise = False
Thomas Hartman/ext/[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/29/2007 10:43 AM
To
haskell-cafe@haskell.org
but there's no risk using trace is there?
t.
The unsafe... functions are called that
for a reason, and their use should be highly discouraged,
except in cases where there is absolutely no other
reasonable way.
Yitzchak Gale [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/29/2007 05:01 PM
I've been playing with MonadPrompt for about ten days now, trying to get
it to do something useful for me.
Specifically, I'm trying to implement guess a number since that's the
hello world of haskell state programs, or so it seems to me. I want to
have this with scripting / replay / undo and
It took me forever to get comfortable with monads.
I think it helps if you've seen continuations, or done FP before, or a
variety of things that build familiarity.
But probably the only thing that I think will work for the masses of
plodders (there are always a few stars to crash the curve) is
Thank you!
I really appreciate your explanation, and I hope this will enable me
to do some interesting and usefull stuff, in addition to firming up my
understanding of some of the more advanced haskell type system
features.
MACID is a sort of RDBMS replacement used as a backend by the HAppS
web
look at the examples of dropWhile usage you got from the first result
when you get when you google on dropWhile.
t.
2007/12/4, Ryan Bloor [EMAIL PROTECTED]:
HI
I will try and explain it better.
I am meaning to write a function that takes a string, apple and
eliminates the spaces at
you need to write a parser.
Parser is a popular library on hackage that should do what you want. (I
have never used it though.)
Or read
http://citeseer.ist.psu.edu/50754.html
and adopt the code from there to your purposes.
I found this paper extremely helpful when I needed to build a
Is there some way to use any of the various regex packages on hackage via
yhc? Has anyone installed one them successfully?
I'd like regex-tdfa, but would settle for regex-posix, or really, anything
that brings the convenience of regex to yhc.
In general, is there a straightforward way to
Is there some way to compile the following function in yhc?
works in ghc with glasgow exts deactivated, yhc complains context for
Prelude.read needed (in final line)
readfloat :: String - Maybe Float
readfloat x | null parse || not (null leftover) = fail $ myRead: ++x
| otherwise =
rather than ask the role of $! I found it helpful to first grasp the role
of seq, since $! is defined in terms of seq and seq is a primitive
operation (no prelude definition, like with IO, it's a given).
What helped me grasp seq was its role in a strict fold.
Basically, try to sum all the
I second that emotion.
That is the perfect paper to read if you've never done a parser and need
one. There is also source code corresponding to the paper if you google
around.
t.
Paul Johnson [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
12/11/2007 03:02 AM
To
Ryan Bloor [EMAIL PROTECTED]
While trying to make Regex.TDFA 0.91 install on 6.8.2
I got
[10 of 21] Compiling Text.Regex.TDFA.RunMutState (
Text/Regex/TDFA/RunMutState.\
hs, dist\build/Text/Regex/TDFA/RunMutState.o )
Text/Regex/TDFA/RunMutState.hs:601:9:
Constructor `STUArray' should have 4 arguments, but has been
I just tried HDBC-ODBC on 6.8.2, but it still crashes. Works on 6.6.1.
thomas.
Thomas Hartman [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/19/2007 12:05 PM
To
haskell-cafe@haskell.org
cc
Subject
[Haskell-cafe] HDBC-ODBC crashes on ghc 6.8
This minimal program below fails
I found
http://haskell.cs.yale.edu/haskell-report/List.html
had many useful one off type list functions such as subsequences and
permutations which are nowhere to be found in hoogle, Data.List, or the
haskell hierarchical libs
Shouldn't these be included somewhere?
thomas.
---
This
02:24 PM
To
Thomas Hartman/ext/[EMAIL PROTECTED]
cc
haskell-cafe@haskell.org
Subject
Re: [Haskell-cafe] eager/strict eval katas
On Dec 12, 2007 2:31 PM, Thomas Hartman [EMAIL PROTECTED] wrote:
exercise 2) find the first integer such that average of [1
The (extremely enlightening) discussion so far has focused on the
inconsistent (arguably buggy) behavior of [a,b..c] enumeration sugar.
I think it's worth pointing out that the code could also be made to
run by making the drop function strict. I got to thinking, in a
strictness debugging scenario
Would you mind posting the code for Prompt used by
import Prompt
I tried using Prompt.lhs from your first post but it appears to be
incompatible with the guessing game program when I got tired of
reading the code and actually tried running it.
best, thomas.
2007/12/4, Ryan Ingram [EMAIL
It should not be necessary to uninstall ghc, as hask plat and ghc are
orthogonal by design.
r
Unless there is some gotcha I am unaware of, not being a mac user.
You are aware that hask plat is beta though, right?
You might be better served simply upgrading your cabal, and waiting
for the
grab cabal here I mean:
http://hackage.haskell.org/trac/hackage/wiki/CabalInstall
2010/3/12 Thomas Hartman tphya...@gmail.com:
It should not be necessary to uninstall ghc, as hask plat and ghc are
orthogonal by design.
r
Unless there is some gotcha I am unaware of, not being a mac user
There is also polyomino.f2s:
http://www.polyomino.f2s.com/david/haskell/combinatorics.html
Iirc correctly there is some stuff here that is not on hackage but
probably could/should be.
2010/3/12 Victor Mateus Oliveira rhapso...@gmail.com:
Hi,
Give a try to this library:
http://blog.patch-tag.com/2010/03/13/mirroring-patch-tag/
cheers, thomas.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
1) Folks, what exactly is the situation with buildbots?
2) Easily available images for installing virtualized environments
could also ameliorate the pain, no?
wrt 1) It seems to me that in an ideal world you could have a
candidate for uploading to hackage, but before uploading you could
push a
I've had this problem too.
I believe trhsx is installed by
http://hackage.haskell.org/package/hsx
So, you might need to
-- upgrade hsx
-- make sure that the upgraded trhsx executable is the one being
executed by cabal install hsx (maybe deleting/temporarily moving other
trhsx exes)
thomas.
, 2 seems like a hard problem to solve.
But 1) could be solved by having a candidate snapshot hackage that can
be cloned at will, and buildbotted against, no?
2010/4/23 Erik de Castro Lopo mle...@mega-nerd.com:
Thomas Hartman wrote:
1) Folks, what exactly is the situation with buildbots?
If I'm
*Main :t Data.Text.IO.readFile
Data.Text.IO.readFile :: FilePath - IO T.Text
but
*Main :t Data.Text.Lazy.IO.readFile
Data.Text.Lazy.IO.readFile
:: FilePath - IO text-0.7.1.0:Data.Text.Lazy.Internal.Text
why does the lazy version use the internal type, whereas the strict
version of Text IO
1 - 100 of 360 matches
Mail list logo