Hi.
I wanted to generalize the definitions in Text.Parsec.Language to be
able to use them with Parsec Text instead of Parsec String. I'm
getting a type error with the following code snippet:
http://hpaste.org/72844
I don't really understand the error, specially with regard to the fact
that the i
Hi Joey.
Thanks for your answer.
On Sun, Jul 29, 2012 at 3:16 PM, Joey Adams wrote:
> On Fri, Jul 27, 2012 at 9:52 AM, Marco Túlio Gontijo e Silva
> wrote:
>> I thought that the only thing I needed to take care while using
>> unsafePerformIO was knowing that the ti
Hi.
I'm using the hslogger library for logging pure code, using the
following function:
uLog :: Priority -> String -> a -> a
uLog pri str x = unsafePerformIO $ logM rootLoggerName pri str >> return x
Everything was working fine, till I used uLog on a very accessed
function. Then the program sta
Hi Johan.
Excerpts from Johan Tibell's message of Seg Mar 28 10:58:16 -0300 2011:
(...)
> If you're a student and like to get paid to work on a Haskell project this
> summer I recommend you go find an interesting project [1] and start working
> on your application.
I plan to apply to the Google S
Hi.
I'm planning to propose a language extension for Haskell to make it possible to
control the visibility of type class instances in module export and import
lists as a research project. I'm planning to implement this in GHC. I've
already mentioned it in #...@irc.freenode.net and got interestin
Hi Max.
Excerpts from Max Bolingbroke's message of Sex Mai 21 04:56:51 -0300 2010:
(...)
> (Incidentally, the link to your paper is broken, so I haven't actually
> been able to read it, sorry!)
It was easy to find it on google.
http://www.dcc.ufmg.br/~camarao/CT/solution-to-mptc-dilemma.pdf
Gre
Hi.
I wrote a(nother) SoC proposal for studying LLVM performance, compared with the
Native Code Generator back-end. It's available at:
http://www2.dcc.ufmg.br/laboratorios/llp/wiki/doku.php?id=marco_soc2
I know the deadline is now near, but I'd be happy to hear comments about it
and update it b
Hi.
I've written a Google Summer of Code proposal for implementing the Immix
Garbage Collector in GHC[0]. It's not on dons list of the 8 most important
projects[1], but I only saw that list after the proposal is done. I'd like to
hear comments about it, specially about its relevance, since it's
Hi Ivan.
Excerpts from Ivan Miljenovic's message of Ter Mar 30 00:01:19 -0300 2010:
> On 30 March 2010 13:55, Jason Dagit wrote:
(...)
> > [..] now trying to profile something, oh wait, some problem again.
>
> Agreed, if Debian didn't include the profiling libraries with GHC
> (though is this du
Hi Edward.
Excerpts from Edward Kmett's message of Sex Mar 12 15:52:50 -0300 2010:
> It has come to my attention that there is an issue with creating accounts on
> the summer-of-code trac at the moment.
Yes, I had one of those. I tried to create an account with the user marcot,
and it asked me f
Hello,
I'd like to invite all Portuguese speakers haskellers to join
#haskell.pt in irc.freenode.net. I added it to the list in
http://www.haskell.org/haskellwiki/IRC_channel .
Greetings.
--
marcot
http://marcot.iaaeee.org/
___
Haskell-Cafe mailing
Em Sex, 2009-02-06 às 22:55 +, Duncan Coutts escreveu:
> On Fri, 2009-02-06 at 08:28 -0200, Marco Túlio Gontijo e Silva wrote:
>
> > > $ ./setup configure --enable-library-profiling --disable-library-vanilla
>
> > > /usr/bin/ld: dist/build/Control/Monad/Cont.o:
Hi,
Em Qui, 2009-02-05 às 20:38 -0200, Marco Túlio Gontijo e Silva escreveu:
> I'm trying to package ghc-paths for debian, and I got to this:
>
> $ ./setup configure --enable-library-profiling --disable-library-vanilla
> Configuring ghc-paths-0.1.0.5...
> $ ./setup build
>
Hello,
I'm trying to package ghc-paths for debian, and I got to this:
$ ./setup configure --enable-library-profiling --disable-library-vanilla
Configuring ghc-paths-0.1.0.5...
$ ./setup build
Preprocessing library ghc-paths-0.1.0.5...
Building ghc-paths-0.1.0.5...
/usr/bin/ar: creating dist/build
Em Sáb, 2008-12-13 às 13:07 -0800, Don Stewart escreveu:
> marcot:
> > Hello,
> >
> > I've presented a small practical course[0] in EMSL[1]. Any comments are
> > welcome.
> >
> > 0: http://marcot.iaaeee.org/mini-curso.pdf (Portuguese only)
> > 1: http://emsl.softwarelivre.org/
> >
>
> Wonderfu
Hello,
I've presented a small practical course[0] in EMSL[1]. Any comments are
welcome.
0: http://marcot.iaaeee.org/mini-curso.pdf (Portuguese only)
1: http://emsl.softwarelivre.org/
Greetings.
--
marcot
http://marcot.iaaeee.org/
___
Haskell-Cafe
Op woensdag 01-10-2008 om 18:59 uur [tijdzone -0700], schreef Jason
Dusek:
> Reply to all?
No. Reply-to-list is a different thing. When you reply-to-all to a
person who is in the list, the person gets two copies of the e-mail with
different headers, which messes with filters and replies.
Greeti
Op woensdag 01-10-2008 om 10:15 uur [tijdzone +0200], schreef Ketil
Malde:
> Derek Elkins <[EMAIL PROTECTED]> writes:
>
> >> parseCSVFromFile "in.csv" >>= return . either (const "error!")
>
> > Whenever you see this >>= return . f pattern think liftM or fmap or <$>.
>
> ...and "return . f >>= ac
Op woensdag 01-10-2008 om 13:25 uur [tijdzone -0700], schreef Martin
DeMello:
> 2008/10/1 wman <[EMAIL PROTECTED]>:
> >
> > PS: Sorry, Andrew, that I first posted the reply directly to you, still
> > getting used to the fact that gmail kindly replies to the user on whose
> > behalf the message was
Op vrijdag 26-09-2008 om 11:45 uur [tijdzone -0400], schreef Stefan
Monnier:
> > When I compare GPL and MIT/BSD licenses, I do a simple reasoning.
> > Suppose a doctor in a battle field meet a badly injuried enemy.
> > Should he help the enemy?
>
> My answer would be that he indeed should, at the
Em Ter, 2008-09-23 às 13:37 +0200, Janis Voigtlaender escreveu:
(...)
> That is, I want a function like
>
>system' :: String -> String -> IO ExitCode
>
> such that
>
>system' cmd inp
>
> would be equivalent to first writing inp to a file, say "temp", and then
> calling
>
>system (c
Hello,
Em Qui, 2008-09-18 às 10:05 -0700, Judah Jacobson escreveu:
> Just a guess, but this might be a problem with control-timeout's use
> of the unsafePerformIO global variables hack. It's missing the
> standard NOINLINE annotations which prevent multiple copies of the
> global variable from be
Em Qui, 2008-09-18 às 16:14 -0300, Marco Túlio Gontijo e Silva escreveu:
> Em Qui, 2008-09-18 às 11:51 -0700, Adam Langley escreveu:
> > Do you want control-timeout?
>
> I think control-timeout is very useful. I'll try to fix it, and if I
> could, I'll upload it to ha
Em Qui, 2008-09-18 às 11:51 -0700, Adam Langley escreveu:
> Do you want control-timeout?
I think control-timeout is very useful. I'll try to fix it, and if I
could, I'll upload it to hackage then.
Greetings.
--
marcot
Página: http://marcotmarcot.iaaeee.org/
Blog: http://marcotmarcot.blogspot.c
Em Qui, 2008-09-18 às 11:30 -0700, Adam Langley escreveu:
> I'm afraid that I don't have enough time to do justice to my packages
> on Hackage these days so I've just sent an email requesting that they
> be removed.
Maybe it's better that they stay there, even with nobody maintaining
them.
Greeti
Hello,
I've written a simple sequencer[0] using gtk2hs and control-timeout[1].
In GHCi it works fine, but when I compile it, the timeouts generated by
control-timeout are not executed. Actually, when I use the keyboard a
lot, at some time they got executed. I thought it could be that these
two p
Em Dom, 2008-09-14 às 14:52 -0700, Don Stewart escreveu:
> marcot:
> > Em Dom, 2008-09-14 às 16:07 -0300, Marco Túlio Gontijo e Silva escreveu:
> > > Thanks, I got it to work running
> > >
> > > threadWaitRead stdInput
> > >
> > >
Em Dom, 2008-09-14 às 16:07 -0300, Marco Túlio Gontijo e Silva escreveu:
> Thanks, I got it to work running
>
> threadWaitRead stdInput
>
> before getChar.
Now I've got another problem:
> import Control.Concurrent
> import System.IO
> import System.Process
&g
Em Dom, 2008-09-14 às 11:08 -0700, Judah Jacobson escreveu:
> On Sun, Sep 14, 2008 at 10:24 AM, Marco Túlio Gontijo e Silva
> <[EMAIL PROTECTED]> wrote:
> <
> > When I run this code, I get
> >
> > fork
> >
> > and the result of ls only after I
Hello.
> import System.Cmd
> import GHC.Conc
>
> main :: IO ()
> main
> = forkIO
> ( do
> putStrLn "fork"
> system "ls"
> return ())
> >> getChar
> >> return ()
When I run this code, I get
fork
and the result of ls only after I press a key. Does getChar b
Hello,
I've made a small program[0] to connect to a wireless network. Comments are
welcome.
Greetings.
0: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/n-m
--
Marco Túlio Gontijo e Silva
Página: http://marcotmarcot.iaaeee.org/
Blog: http://marcotmarcot.blogspot.com/
Co
re very welcome.
Greetings.
[1]: http://www.haskell.org/pipermail/haskell-cafe/2007-July/028501.html
[2]:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/interleavableIO-0.0.1
[3]:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/interleavableGen-0.0.1
--
Marco Túlio Gontijo
002, zlib >=0.4
>
> I'm not sure from this message what packages I need to install to get
> cabal up and running. Can anyone help?
You can get these listed packages (Cabal, HTTP and zlib) in Hackage
( http://hackage.haskell.org/ ).
Greetings.
--
Marco Túlio Gontijo e S
en checking an existential match that binds
l :: l t
The pattern(s) have type(s): L t
The body has type: l t
In the definition of `unboxL': unboxL (L l) = l
Thanks.
--
Marco Túlio Gontijo e Silva
Página: http://marcotmarcot.googlepages.com/
Blog: http://marcotmarcot.bl
> /home/norbert/bin/lib/SDL-mixer-0.5.2/ghc-6.8.2/HSSDL-mixer-0.5.2.o:
> unknown symbol `Mix_LoadWAV'
> ghc-6.8.2: unable to load package `SDL-mixer-0.5.2'
Hello.
SDL-mixer does not support the most recent SDL version. The problem is
that in SDL now Mix_LoadWAV is a macro
t would make things better from
the users point of view. What do you think?
--
Marco Túlio Gontijo e Silva
Blog: http://marcotmarcot.blogspot.com/
Página: http://marcotmarcot.googlepages.com/
Correio, Jabber, GTalk, MSN: [EMAIL PROTECTED]
IRC: [EMAIL PROTECTED]
IRC: [EMAIL PROTECTED]
Skype:
Em Seg, 2007-01-29 às 13:34 -0200, Marco Túlio Gontijo e Silva escreveu:
> Hello,
>
> I was trying to compile a library I wrote with cabal, but I couldn't
> because of -O. I tried removing it and it worked ok. Then I noticed that
> -O was giving some warnings and an error
build -package
base-2.0 -Wall -Werror -fffi Algebra.Geometric.Gpc
[1 of 1] Compiling Algebra.Geometric.Gpc ( Algebra/Geometric/Gpc.hs,
dist/build/Algebra/Geometric/Gpc.o )
[EMAIL PROTECTED]:~/codigo/haskell/haskellgpc/haskellgpc$
Why can't I use -O?
Thanks.
--
malebria
Marco Túlio Gonti
Em Qui, 2007-01-25 às 16:58 +, Simon Peyton-Jones escreveu:
> | -Original Message-
> | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marco
> | Túlio Gontijo e Silva
> | Sent: 25 January 2007 12:57
> | To: haskell-cafe
> | Subject: Re: [Haskel
Em Qua, 2007-01-24 às 20:36 -0500, Bryan Donlan escreveu:
> Marco Túlio Gontijo e Silva wrote:
> > Hello,
> >
> > I'm trying to define a partition__ function that is like
> > Data.Set.partition, but use State Monad:
> >
> >> import Data.Set
> >
haskell 98 report, but I
couldn't find where it explains the reason why these different versions
influence on type infer.
Thanks for any help.
--
malebria
Marco Túlio Gontijo e Silva
Correio (MSN): [EMAIL PROTECTED]
Jabber (GTalk): [EMAIL PROTECTED]
Ekiga: [EMAIL PROTECTED]
IRC: [EMAIL PROTE
(Use -fglasgow-exts to permit this)
In the type signature for `partition__':
partition__ :: (MonadState (Set a) t, Ord a) =>
(a -> Bool) -> t (Set a)
Failed, modules loaded: none.
Why do I need glasgow-exts to specify a type infered by GHCi without
-fgl
Em Qui, 2007-01-11 às 16:51 +0100, minh thu escreveu:
> 2007/1/11, Marco Túlio Gontijo e Silva <[EMAIL PROTECTED]>:
> > Em Qui, 2007-01-11 às 16:14 +0100, minh thu escreveu:
> > > you might want invistigate "heterogeneous lists" : in your case, it's
> >
Em Qui, 2007-01-11 às 16:14 +0100, minh thu escreveu:
> you might want invistigate "heterogeneous lists" : in your case, it's
> "heterogeneous typle".
But aren't tuples always heterogeneous?
Regards.
--
malebria
Marco Túlio Gontijo e Silva
Correio (M
e' f g (a, b) = (f a, g b)
mapTuple f = mapTuple' f f
But the inferred type was the same.
Is there a way to define a function in which I can be able to do
something as this?
mapTuple show ("string", True)
--
malebria
Marco Túlio Gontijo e Silva
Correio (MSN): [EMAIL PROT
(Int, Int)
Then you got to the error: there's no
instance Show (Int -> (Int, Int))
To call eval (x :: Term) you must pass a initial State, say 0.
eval answer 0 :: (Int, Int)
--
malebria
Marco Túlio Gontijo e Silva
Correio (MSN): [EMAIL PROTECTED]
Jabber (GTalk): [EMAIL PROTECTE
tool) to build. Cabal would need to
> crawl over the source files to see what preprocessors are really needed.
> (It does that in the build phase, but not configure.) If haddock is
> absent, you can build and install, but not build documentation.
Maybe if in the Cabal file was specifie
Em Ter, 2004-11-02 Ãs 18:09, Henning Sato Rosen escreveu:
> data Fun = Increment | Square
> fun:: Fun -> Int -> Int
> fun Increment n = n+1
> fun Square = (\n -> n*n)
I think that this is because you gave two definitions of the same
function with different number of variables.
fun Incremen
48 matches
Mail list logo