[Haskell-cafe] Do you want to maintain bindings-DSL?

2013-09-13 Thread Maurício Antunes
. Or you could keep the original goal, and maybe add a mailing list and a web page where users could request new libraries and discuss solutions to trick issues. A possible plan for version 2 is to be independent of hsc2hs, and use a new syntax instead of C macros. Thanks. Best, Maurício [1]: http

[Haskell] ANN: bindings-DSL 1.0.14

2011-09-01 Thread Maurício CA
Besides the usual Storable instantiated Haskell version of struct a, (named C'a), now you also get the following: p'a'b :: Ptr C'a - Ptr CInt p'a'e'c :: Ptr C'a - Ptr CChar p'a'e'd :: Ptr C'a - Ptr CFloat p'a'f :: Ptr C'a - Ptr (Ptr C'a) Hope it's useful to you. Best, Maurício

Re: [Haskell-cafe] video for linux two (v4l2) bindings

2011-07-08 Thread Maurício Antunes
from that link, unpack and do 'cabal install' inside the new directory. Best, Maurício 2011/7/8, Claude Heiland-Allen cla...@goto10.org: Hi, On 05/07/11 10:19, Christopher Done wrote: [snip] /usr/bin/ld: /home/chris/.cabal/lib/bindings-posix-1.2.2/ghc-6.12.3/libHSbindings-posix-1.2.2

Re: [Haskell-cafe] [Off-topic]Functional parsing theory

2010-10-09 Thread Maurício Antunes
, Maurício 2010/10/7, bieniusa bieni...@informatik.uni-freiburg.de: It's not entirely clear what you mean: Do you want to describe grammars or parsers functionally: In the first case, parser combinators are what you want (or some encoding of them). There are many variations on these: LL(k), context

[Haskell-cafe] Who takes care of Haskell mailing lists?

2009-05-27 Thread Maurício
to use it. Is there someone I could contact about that? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell programmer s in São Carlos - SP - Brazil?

2009-05-26 Thread Maurício
Is there already any mailing list or group in Portuguese? I would like that if it were a list for Portuguese speakers, no matter they are from Portugal or Moçambique. Maurício Hey, we have enough people for a São Paulo Haskell User Group. Anyone else interested? Best regards, Daniel

[Haskell-cafe] Re: Haskell programmers in São Carlos - SP - Brazil?

2009-05-26 Thread Maurício
most of us will always be able to write deeper thoughts in Portuguese than in English. I'll check with the guys at: http://haskell.org/mailman/listinfo If it doesn't suceed, we'll just erase it. Best, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] haddock could be a pretty-printer?

2009-05-22 Thread Maurício
, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: haddock could be a pretty-printer?

2009-05-22 Thread Maurício
indenting to get code to parse, but I like to give it good presentation before publishing. I used to pretty-print my code using haskell-src-exts with great result, but that kills documentation. Best, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Re: Problem with haddock importing definition

2009-05-20 Thread Maurício
by 'other-modules'.) Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Problem with haddock importing definition

2009-05-15 Thread Maurício
. So: if my .cabal file lists A and B in 'exposed-modules', documentation for R is included in A documentation. If I remove B from 'exposed-modules', R documentation in A desapears. Do you know what should I do? Thanks, Maurício ___ Haskell-Cafe

[Haskell-cafe] Re: List of exports of a module - are there alternatives?

2009-05-13 Thread Maurício
can be painfull to your eyes, going up and down into your file to check if the list is correct. Maurício I would like to see this too. Maybe just a private keyword that would make everything after it invisible to the outside (or until a public keyword appeared)? Are there propositions

[Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-12 Thread Maurício
something like that could be nice when we have modules with 200 declarations and just a few are (not) going to be exported.) Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: When is it OK to create a new mailing list?

2009-05-04 Thread Maurício
is just a bug-tracking system. The community server provides that (as Duncan pointed earlier). Best, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Help from C libraries experts

2009-04-30 Thread Maurício
after your thoughts. Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Why do I need a 'do'?

2009-04-30 Thread Maurício
: sequence (rollNDice 10) Check the type of sequence at Control.Monad. Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Help from C libraries experts

2009-04-30 Thread Maurício
itself, as is my current attempt on sqlite3. Sometimes the task can be delegated to pkg-config. Actually, that is the reason why my first post was a call for help from libraries experts. This has to be solved on a per library base. Thanks, Maurício

[Haskell-cafe] Help from C libraries experts

2009-04-29 Thread Maurício
, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Help from C libraries experts

2009-04-29 Thread Maurício
for the guidelines. If it doesn't work (i.e., nobody gets interested), it's dead for good. Best, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] What happened to Haskell original goals?

2007-01-10 Thread Maurício
me learning this really cool language. Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Nice cygwin application to be used with ghci

2006-08-15 Thread Maurício
unexpected results while using it. Since the issue of ghci integration with terminals has been raised here sometimes, I thought some guys here would be interested (actually, I found rlwrap looking for a better way to use ghci). Best, Maurício

[Haskell-cafe] Genetic programming Haskell

2006-08-15 Thread Maurício
an experimental one)? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Opening a file that another process is writing

2006-07-20 Thread Maurício
Hi, I want to open for reading a log file that another process is locking for write. I know it's possible, since 'cat' and 'vim' can read that file (but not edit it, of course). How can I do that in Haskell? 'openFile' says permission denied. Thanks, Maurício

[Haskell-cafe] Re: Small syntax question

2006-07-12 Thread Maurício
That's very good for us begginers. It would be great if this could be in the main Haskell site. Doaitse Swierstra wrote: Jeroen Fokker has made Haskell syntax diagrams, which are part of lecture notes for first-year students. Maybe they are helpful to others too, Doaitse

[Haskell-cafe] Small syntax question

2006-07-11 Thread Maurício
Hi, I can do this: (let a=3 in a) + (let b=4 in b) but not this: (a where a=3) + (b where b=3) Why? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Efficient way to edit a file

2006-06-19 Thread Maurício
would help a lot. Can I do that on Windows? Also: safety is not a concern. I can delete those big files as much as I need, they are only temporary data. Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

[Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Maurício
Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? Thanks, Maurício ___ Haskell-Cafe

[Haskell-cafe] Re: Unexpected results with simple IO

2006-02-20 Thread Maurício
(for instance, how to set the top arrow to repeat the last line, instead of moving the cursor one live above. I don't understand very well how those applications handle keyboard). Best, Maurício Emil Axelsson wrote: What version of GHC are you using? Your code works for me in rxvt in Cygwin

[Haskell-cafe] Re: Unexpected results with simple IO

2006-02-17 Thread Maurício
You're right... I was running the example in rxvt, in cygwin. Now I tried in Windows command shell and it works. Thanks, Maurício Cale Gibbard wrote: That doesn't happen for me at all, it works just fine. Maybe it's something wrong with your terminal? You could possibly try playing

[Haskell-cafe] Layout processing

2006-02-15 Thread Maurício
to understand better how layout works. Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Small syntax question

2006-02-13 Thread Maurício
Hi, This is valid code: module Main where main = do let a = 3 return () Why isn't this one? module Main where main = do { let a = 3; return (); }; Thanks for your help, Maurício ___ Haskell-Cafe mailing

[Haskell-cafe] Re: Haskell code for this example of flow control

2006-02-03 Thread Maurício
Kurt Hutchinson wrote: On 2/2/06, Maurício [EMAIL PROTECTED] wrote: I understand those examples, but I really would like to know how to do that with monads. I would like to ask the same question, but now with this code: double a = 1000; double b = 0; while (a != b) { a /= 2; cout

[Haskell-cafe] Re: Haskell code for this example of flow control

2006-02-02 Thread Maurício
would like to know how to do that with monads. I would like to ask the same question, but now with this code: double a = 1000; double b = 0; while (a != b) { a /= 2; cout a; // Prints a cin b; // User gives a number, stored in b }; Best, Maurício

[Haskell-cafe] Re: Can I use Haskell for web programming

2006-01-23 Thread Maurício
I think it would be interesting to ask some professional site to install hsp, before I go to the cgi solution. If I want to do that, what should I ask them to install to get a full working environment, with access to SQL and other stuff? Maurício Niklas Broberg wrote: hsp can be run

[Haskell-cafe] Can I use Haskell for web programming

2006-01-21 Thread Maurício
in the middle of xhtml pages. If I have to generate everything from Haskell code, I would probably like it. Also, CGI can be a choice). But I need reasonable efficiency and to be able to find someone to host my site. What solutions do you suggest me? Thanks, Maurício

[Haskell-cafe] Re: Can I use Haskell for web programming

2006-01-21 Thread Maurício
They both look cool. Do you think I'll be able to find someone to host professional sites using those libraries? [], Maurício Sebastian Sylvan wrote: On 1/21/06, Maurício [EMAIL PROTECTED] wrote: Hi, Can I use Haskell to do what people do with, say, PHP? More and more I have

[Haskell-cafe] Re: Can I use Haskell for web programming

2006-01-21 Thread Maurício
Interesting. It's hosted on Haskell site. Do you think I would be able to do what you have done in a professional hosting service computer? Best, Maurício Neil Mitchell wrote: Hi, Can I use Haskell to do what people do with, say, PHP? I wrote Hoogle (http://haskell.org/hoogle

[Haskell-cafe] (**) over integers

2005-06-14 Thread Maurício
Hi, I'm trying to do this: let f n = mod (n**5) 12 but I see that I can't because ** only operates on floats. Is there an equivalent operator that works on integers? How should I do that? Thanks, Maurício ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Visual Hashell Studio.NET 2005

2005-06-06 Thread Maurício
use Haskell with mono? [...], Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Corba and Haskell

2005-03-04 Thread Maurício
Hi, Have you guys used any Corba library for Haskell? Which one would you recommend (if there are more than one)? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Browser-like UI

2005-03-01 Thread Maurício
platform please ask on the gtk2hs mailing list and we'll see what we can do. I did read that FAQ, but it says that I should build with: $ ./configure --disable-gnome --disable-mozilla Doesn't that means that the mozilla interface should be disabled? Maurício

[Haskell-cafe] Browser-like UI

2005-02-28 Thread Maurício
build on my 64Mb computer. What else can I use? How does that work, can I handle HTML events with Haskell code? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Begginer question

2005-01-06 Thread Maurício
Ketil Malde wrote: Maurício [EMAIL PROTECTED] writes: (...) Couldn't match `Float' against `Complex Float' Expected type: Float Inferred type: Complex Float In the second argument of `(+)', namely `sqr_delta' In the definition of `x1': x1 = (b + sqr_delta) The error

[Haskell-cafe] Begginer question

2005-01-05 Thread Maurício
' In the definition of `x1': x1 = (b + sqr_delta) *** Can you help me finding what is wrong? Shouldn't b be converted to Complex Float and be summed to sqr_delta? Thanks for your help, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org