[Haskell-cafe] Parsec type error with Flexible Contexts

2012-08-09 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Logging pure code

2012-07-29 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Logging pure code

2012-07-27 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] ANN: Google Summer of Code student application period opens today

2011-04-05 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Exportable and importable instances

2011-01-07 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Proposal to solve Haskell's MPTC dilemma

2010-05-21 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] LLVM study SoC proposal

2010-04-08 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Immix GC as a Soc proposal

2010-04-01 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Re: Haskell-friendly Linux Distribution

2010-03-30 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] [Haskell.org Google Summer of Code] trac signup issues

2010-03-13 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] #haskell.pt IRC channel

2009-05-15 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Error in building profiling

2009-02-09 Thread Marco Túlio Gontijo e Silva
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:

Re: [Haskell-cafe] Error in building profiling

2009-02-06 Thread Marco Túlio Gontijo e Silva
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 >

[Haskell-cafe] Error in building profiling

2009-02-05 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Small haskell practical course

2008-12-13 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Small haskell practical course

2008-12-13 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] csv one-liner

2008-10-02 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] csv one-liner

2008-10-01 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] csv one-liner

2008-10-01 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Re: Hmm, what license to use?

2008-09-26 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] "piping" to system call

2008-09-23 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] control-timeout with gtk

2008-09-19 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] control-timeout with gtk

2008-09-19 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] control-timeout with gtk

2008-09-18 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] control-timeout with gtk

2008-09-18 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] control-timeout with gtk

2008-09-18 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] system in forkIO

2008-09-14 Thread Marco Túlio Gontijo e Silva
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 > > > > > >

Re: [Haskell-cafe] system in forkIO

2008-09-14 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] system in forkIO

2008-09-14 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] system in forkIO

2008-09-14 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Connecting to wireless network

2008-09-11 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] InterleavableIO

2008-07-23 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Trying to install cabal

2008-07-10 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Existential quantification problem

2008-07-10 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Marco Túlio Gontijo e Silva
> /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

[Haskell-cafe] Text.Xhtml.Strict

2007-08-25 Thread Marco Túlio Gontijo e Silva
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:

Re: [Haskell-cafe] Error and warning messages with -O

2007-01-29 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Error and warning messages with -O

2007-01-29 Thread Marco Túlio Gontijo e Silva
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

RE: [Haskell-cafe] Type infer

2007-01-26 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Type infer

2007-01-25 Thread Marco Túlio Gontijo e Silva
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-cafe] Monomorphism restriction

2007-01-23 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] Type infer

2007-01-22 Thread Marco Túlio Gontijo e Silva
(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

Re: [Haskell-cafe] mapTuple

2007-01-11 Thread Marco Túlio Gontijo e Silva
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 > >

Re: [Haskell-cafe] mapTuple

2007-01-11 Thread Marco Túlio Gontijo e Silva
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

[Haskell-cafe] mapTuple

2007-01-11 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] Can't figure out how to "show" for type "Int -> (Int, Int)"

2007-01-11 Thread Marco Túlio Gontijo e Silva
(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

Re: [Haskell-cafe] trouble installing greencard -- -fno-prune-tydecls flag ( was Re: trivial function application question )

2007-01-06 Thread Marco Túlio Gontijo e Silva
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

Re: [Haskell-cafe] different arities

2004-11-02 Thread Marco Túlio Gontijo e Silva
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