On Oct 12, 2013, at 2:47 PM, Niklas Hambüchen m...@nh2.me wrote:
I would like to come back to the original question:
How can ordNub be added to base?
I guess we agree that Data.List is the right module for a function of
type Ord a = [a] - [a], but this introduces
* a cyclic
:
I've been talking to Anthony Cowley who I think is the current maintainer of
HOpenCV and Ville Tirronen who has been developing the CV bindings. Basically
the consensus is that these raw bindings provide a new base to work from, and
it's worthwhile to rethink the API we provide with a fresh
On Jul 13, 2013, at 8:04 PM, Jason Dagit dag...@gmail.com wrote:
On Sat, Jul 13, 2013 at 4:39 PM, Mark Lentczner
mark.lentcz...@gmail.com wrote:
Bizarre - this just happened to me today, too. Anyone? Did you figure out a
work around? For the record, I'm trying to bring Euterpea up.
After
On Tue, May 7, 2013 at 2:58 PM, Ryan Newton rrnew...@gmail.com wrote:
Hi cafe,
I use symbols all the time when manipulating code. I vacillate between
using stringtable-atom, symbol, and simple-atom. Unfortunately:
Stringtable-atom is has a broken build right now (GHC 7.6). (Also I've had
I wrote this some time ago.
http://www.arcadianvisions.com/blog/?p=346
I know that soon after I wrote that, it worked with both OpenCL and gloss from
hackage, but there may be some bitrot at this point.
Anthony
On May 4, 2013, at 6:00 AM, Christopher Howard
christopher.how...@frigidcode.com
On Sat, May 4, 2013 at 3:17 PM, Jason Dagit dag...@gmail.com wrote:
On Sat, May 4, 2013 at 11:54 AM, Anthony Cowley acow...@seas.upenn.edu
wrote:
I wrote this some time ago.
http://www.arcadianvisions.com/blog/?p=346
I know that soon after I wrote that, it worked with both OpenCL and gloss
On Tue, Apr 16, 2013 at 4:05 PM, Sturdy, Ian sturdy...@mail.wlu.edu wrote:
'vinyl' uses type-level literal strings and is very slick (although all
fields with the same name have the same type)
This is not entirely true, depending on what you mean by name. The
following is just fine. You only
On Mar 9, 2013, at 3:33 PM, Peter Caspers pcaspers1...@gmail.com wrote:
Hi,
I just started playing around a bit with Haskell, so sorry in advance for
very basic (and maybe stupid) questions. Coming from the C++ world one thing
I would like to do is overloading operators. For example I
I know that it probably needs updating for Groovy. I don't think it
has many users, which makes it more challenging to keep things running
smoothly, but I'm willing to help any interested parties get it up and
running.
Anthony
On Fri, Jan 11, 2013 at 4:37 PM, Tijn van der Zant robot...@gmail.com
On May 16, 2012, at 12:08 PM, Yves Parès wrote:
The buffer http://hpaste.org/68595 presents a simple code I tried to profile.
I spotted what I strongly think to be an abusive memoization. The problem is
that I don't see how to (simply) get rid of it.
Compiled with -O2, it consumes 130MB of
On Thursday, April 5, 2012 at 1:53 AM, Sutherland, Julian wrote:
Hey Guys,
I'm Julian, I am reaching the end of my second year as a JMC (Joint
Mathematics and Computer science) Student at Imperial College London
and I'd like to apply to GSOC for a project involving Haskell and I just
On Thursday, March 15, 2012 at 2:27 PM, Juan Miguel Vilar wrote:
Hello, café:
I am trying to use more than one array with runSTUArray but I don't seem
to be able to understand how it works. My first try is this:
test1 n = runSTUArray $ do
a - newArray (1, n) (2::Int)
b - newArray (1,
From that profiling data, I think you're just seeing a decrease in sharing.
With one thread, you create the list structure in memory: the first fold could
consume it in-place, but the second fold is still waiting for its turn. The
list is built on the heap so the two folds can both refer to
On Thu, Mar 8, 2012 at 11:19 AM, Christopher Done
chrisd...@googlemail.com wrote:
‘Ello.
Is there a generalization of this operator? It's all over the place,
it's basically
(!) :: (Monad m, Indexed collection index value) = index -
container - m value
We have `(!!)` on lists, `(!)` on
On Thu, Jan 19, 2012 at 1:15 PM, Dominic Espinosa dces...@fastmail.fm wrote:
Hello,
I'm trying to use the fftw binding, and its functions operate on CArrays of
Complex. My data is coming from hsndfile, so it starts out as a Vector of
Double. How do I convert this data to CArray? The API
On Thu, Jan 5, 2012 at 10:40 AM, Johannes Waldmann
waldm...@imn.htwk-leipzig.de wrote:
How could I use haxr (http://www.haskell.org/haskellwiki/HaXR)
to build a stateful server?
It should listen on some port,
and fork threads (inside Haskell land) to handle incoming calls.
Any of the Haskell
On Dec 15, 2011, at 10:19 AM, Brent Yorgey wrote:
On Thu, Dec 15, 2011 at 06:49:13PM +1000, Gregory Crosswhite wrote:
So at the end of the day... what is the point of even making Maybe and []
instances of Alternative?
The Alternative and Monoid instances for [] are equivalent. However,
On Sep 27, 2011, at 2:01 PM, Jeremy Shaw jer...@n-heptane.com wrote:
When the robots take over, do you want them to be developed using a sane
language like Haskell or Agda? Or some dangerous untyped OO language? I think
the answer is obvious.
The question is, How?. The robots will not be
I reported a segfault in FFI calls a while back that should be fixed
in 7.2. It turned out to be a stack alignment issue, which may or may
not be related to what you are seeing.
Here is the bug report:
http://hackage.haskell.org/trac/ghc/ticket/5250
Anthony
On Sat, Aug 20, 2011 at 12:51 PM,
On Fri, Jul 15, 2011 at 10:48 AM, yi huang yi.codepla...@gmail.com wrote:
I'm writing my first haskell package, how do i determine the minimal
dependency of it, for example, it use Data.Data, how do i know which version
of base package first introduce Data.Data module, i can't find the answer
On Tue, May 31, 2011 at 3:49 PM, Scott Lawrence byt...@gmail.com wrote:
I was under the impression that operations performed in monads (in this
case, the IO monad) were lazy. (Certainly, every time I make the
opposite assumption, my code fails :P .) Which doesn't explain why the
following code
On Mon, May 23, 2011 at 5:17 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:
So, after this tale of agony, here are two concrete questions:
a) Am I right in concluding that GHC 7.0.3 will not run on OS X 10.5
(without unreasonable effort)?
This is a frustrating situation. Note that there
On Mon, May 23, 2011 at 8:16 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:
On 2011 May 23, at 13:45, Anthony Cowley wrote:
As for the platform, if it is giving you trouble, don't shy away from
just using GHC and cabal as normal! After you've cabal installed a few
big packages, you
On Mon, Apr 11, 2011 at 8:09 AM, Serguei Son serguei@gmail.com wrote:
Consider two versions of sin wrapped:
foreign import ccall math.h sin
c_sin_m :: CDouble - IO CDouble
Marking this call as unsafe (i.e. foreign import ccall unsafe math.h
sin) can improve performance dramatically. If
On Sun, Feb 6, 2011 at 11:59 PM, C K Kashyap ckkash...@gmail.com wrote:
$ ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading
On Sun, Feb 6, 2011 at 10:10 PM, Donn Cave d...@avvanta.com wrote:
Of the people who are apt to be interested, a sizeable percentage
already will be familiar with ALARM_STUFF_WENT_WRONG, and as the
nice Haskell spelling offers no practical advantage at all, it's
purely a waste of their time to
On Fri, Feb 4, 2011 at 9:41 AM, C K Kashyap ckkash...@gmail.com wrote:
Thanks Steffen,
Prelude :l MyModule.hs
*MyModule conn - waitForAndAcceptConnection
*MyModule someData - getSomeData conn
*MyModule sendSomeAnswer conn $ processSomeData someData
...
So this cycle of getting data from
On Wed, Jan 5, 2011 at 3:02 PM, Jonathan Geddes
geddes.jonat...@gmail.com wrote:
The Haskell type system is simply not rich enough to guarantee everything
you might need.
Despite all this, I suspect that since Haskell is at a higher level of
abstraction than other languages, the tests in
On Tue, Nov 23, 2010 at 7:58 PM, Adam Miezianko a...@theorylounge.org wrote:
I'm working through Learn You a Haskell for Great Good [1] and getting
a compiler error while playing around with some of the code. I have
this:
Now, I'm not exactly sure how to read the documentation for
On Sat, Nov 13, 2010 at 4:35 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
I've been working with Haskell's Date.Time modules to parse a date
like 12-4-1999 or 1-31-1999. I tried:
parseDay :: String - Day
parseDay s = readTime defaultTimeLocale %m%d%Y s
And I think it wants my
On Wed, Oct 20, 2010 at 9:02 AM, Ben Millwood hask...@benmachine.co.uk wrote:
Robotics and Automation
Would be tempted to drop Automation from here.
That name was deliberately chosen, and is appropriate for people in the area,
http://www.ieee-ras.org/
I have my own opinions on a lot of these
On Thu, Oct 7, 2010 at 9:33 AM, Jan-Willem Maessen
jmaes...@alum.mit.edu wrote:
There's no evaluation magic here---all that's happening is GHC is
executing the program exactly as written. It can't float the list out
of the function, as that can lead to unexpected space leaks (if you
didn't
2010/9/8 Gábor Lehel illiss...@gmail.com:
Oh. Hmm. That makes sense. So I gather there's absolutely no way to
specify which instance you mean, and hence to use `value` as any
concrete type?
Here's one way to indicate which value you are referring to.
Anthony
{-# LANGUAGE EmptyDataDecls,
On Tue, Aug 24, 2010 at 11:02 AM, Raluca-Elena Podiuc
ralucaelena1...@gmail.com wrote:
Hi,
I am trying to build a mini framework for image processing but I can find
any examples about that (bitmap processing ). Does anybody know were can I
find some tutorials or samples about that ?
Noam
On Tue, Aug 17, 2010 at 2:54 PM, Andrew Coppin
andrewcop...@btinternet.com wrote:
While we're on the subject... Suppose I have a package, which I know works
with foo-8.7.2. What should the Cabal dependents field say? We have a choice
of
foo == 8.7.2
foo = 8.7.2
foo = 8.7
foo = 8.7
On Wed, Aug 4, 2010 at 12:49 AM, kirstin penelope rhys
kirs...@speakeasy.net wrote:
But now I need a fast multidimensional array which can handle a tuple of
primitive types.
My options, as far an I can see, are:
1) Add an instance for UArray (Int,Int) (Word16, Word16, Word16)
and/or UArray
On Sun, Jul 18, 2010 at 3:59 AM, Carter Schonwald
carter.schonw...@gmail.com wrote:
I don't think that semantics creates the sort of ambiguity that Kevin is
concerned about, and while yes there simple alternative approaches, they
require whatever is starting up ghci to know what the correct
make the file B.hs fragile with respect to moving it
around on disk.
Anthony
On Sun, Jul 18, 2010 at 1:34 PM, Anthony Cowley acow...@seas.upenn.edu
wrote:
On Sun, Jul 18, 2010 at 3:59 AM, Carter Schonwald
carter.schonw...@gmail.com wrote:
I don't think that semantics creates the sort
On Tue, Jun 1, 2010 at 10:30 AM, Gery Debongnie
gery.debong...@gmail.com wrote:
3. Perform a reading of the font metrics file in the main program, put
the results into some FontMetrics object, and give that to stringWidth
:: FontMetrics - Font - String - Double. Pros : allow me to avoid
On Sun, Apr 11, 2010 at 5:54 PM, Jason Dagit da...@codersbase.com wrote:
On Sun, Apr 11, 2010 at 1:59 AM, Andrew U. Frank
fr...@geoinfo.tuwien.ac.at wrote:
in modeling real application we have often the case that the type of
some object depends on a value. e.g. small_boat is a vessel with
On Fri, Apr 2, 2010 at 12:53 PM, Dominic Espinosa dces...@fastmail.fm wrote:
Is there a general strategy for deploying Haskell apps, graphical or no,
to MacOS X and/or Windows? I'm especially interested in cases where the
application uses some heavyweight libraries like OpenGL.
I have a GUI
On Sun, Feb 21, 2010 at 1:58 PM, Artyom Kazak artyom.ka...@gmail.com wrote:
So, if I type ./prog +RTS --RTS +RTS, the output will be +RTS. But
I want the output to be equal to the input IN ALL CASES, without any
quotes, additional options, etc. I want all the command line to go to
my program.
42 matches
Mail list logo