<Axioplase>
isn't calm supposed to unify something like that: This expression has type Ast.ast_pattern |ID(m,c,d,l)-> p_nfast_cl([Ast_pattern_name m],[],c,d,l,l) * 'a list but is here used with type Ast.ast_pattern list * string list
<Axioplase>
argh..
<Axioplase>
This expression has type Ast.ast_pattern * 'a list but is here used with type Ast.ast_pattern list * string list
<Axioplase>
Why wouldn't it just infer 'a <=> string ?
<ketty>
that is not the problem
<ketty>
the problem is ast_pattern vs. ast_pattern list
<Axioplase>
ha damn.
<ketty>
:)
<Axioplase>
hadn't read that :/
<Axioplase>
thanks
<ketty>
np
dbueno has joined #ocaml
<dbueno>
With module type AOEU = <something>, is there a <something> that means "the signature associated with a certain module"?
<dbueno>
So module Foo has a signature... can I get that signature and make a module type out of it?
<ketty>
i think you can associate several signatures to the same module...
<zmdkrbou>
except if you have defined explicitely the signature for module Foo, i don't think so
<zmdkrbou>
isn't it a kind of "typeof" that you want ?
alcojol has quit ["KVIrc 3.2.0 'Realia'"]
cratuki has joined #ocaml
<cratuki>
I'm using ocaml on ubuntu linux. Is there an easy way to get it to make simple-tone sounds to my soundcard?
<cratuki>
I just want to be able to say "44000 for pitch, 2000ms long, this volume - go for it!"
* zmdkrbou
hands beep to cratuki
<zmdkrbou>
i don't think there are ocaml bindings for alsa ...
<zmdkrbou>
there's ocaml-sdl if you want
Axioplase has quit ["leaving"]
<cratuki>
zmdkrbou: I'll check out alsa. I don't really care what platform I use, I just don't want to have to write and understand how an oscillator works in order to do what I think is probably a fairly simple requirement :)
<cratuki>
My palm can do it :)
<cratuki>
And my phone
<cratuki>
But I can't seem to find a desktop dev platform that can :)
ertai has quit [Read error: 104 (Connection reset by peer)]
cratuki has left #ocaml []
ertai has joined #ocaml
jcreigh has joined #ocaml
jcreigh has quit [Client Quit]
ertai has quit [Success]
ertai has joined #ocaml
ertai has quit [Remote closed the connection]
mikeX has quit ["zz"]
ertai has joined #ocaml
ertai has quit [Read error: 104 (Connection reset by peer)]
ertai has joined #ocaml
ertai has quit [Read error: 104 (Connection reset by peer)]
ertai has joined #ocaml
ertai has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
Tachyon76 has joined #ocaml
Smerdyakov has quit ["Leaving"]
<pango>
(to cratuki that's gone : Graphics.sound)
<love-pingoo>
I just came back from holidays, and I've already discovered something new :p thanks pango..
<pango>
;)
_JusSx_ has joined #ocaml
pango is now known as pangoafk
<_JusSx_>
hey ppl what are you coding?
<ayrnieu>
nothing at the moment. Why do you ask?
<flux__>
just to strike up conversation?-)
pangoafk is now known as pango
pauldia has joined #ocaml
<flux__>
I'm writing a program to count coins from a flatbed scanned image.. but it's in c++, I think the c++ compiler might still have an edge in the efficiency ;)
<pauldia>
hello, can you convert a sum type to a string?
<pauldia>
... more specific: convert the constructor name to a string
<pango>
with a match, and no fire
<pauldia>
ok.
<ski>
# function None -> "None" | Some _ -> "Some";;
<ski>
- : 'a option -> string = <fun>
<pauldia>
I'm trying to generalize exceptions thrown from the curl lib. And curl lib has *a lot* of exception variants.