On Sat, Jun 13, 2009 at 8:41 PM, Shu-yu Guo wrote:
> Hello all,
>
> It seems like getDirectoryContents applies codepage conversion based
> on the default program locale under Windows. What this means is that
> if my default codepage is some kind of Latin, Asian glyphs get
> returned as '?' in the f
On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Adams wrote:
> I've been hoogling like bad to try to determine if a function like
> this exists.
>
> getDirectoryContents returns sub-directories as well as file names. I
> want only the latter, so I'm looking for a suitable filter.
Use System.Directory
On Wed, Aug 19, 2009 at 10:31 AM, Iain Barnett wrote:
> Quick question: I've tested this in a couple of different terminals (roxterm
> and xterm), so I'm fairly sure it's GHC that's the problem. Have I missed a
> setting?
> GHCi, version 6.10.4
> Prelude> putStrLn "£"
> �
> Hugs98 200609-3
> Hugs>
On Sat, Aug 22, 2009 at 2:37 PM, Peter Verswyvelen wrote:
> Okay, I'll file a bug report. Maybe someone else on Windows could confirm
> this behavior?
> On Sat, Aug 22, 2009 at 11:36 PM, Jason Dagit wrote:
>>
>> On Sat, Aug 22, 2009 at 2:14 PM, Peter Verswyvelen
>> wrote:
>> > The following progra
On Fri, Sep 11, 2009 at 11:46 AM, Lyle Kopnicky wrote:
> Hi folks,
>
> I just installed GHC 6.10.4 on Ubuntu 9.04 32-bit, and then tried to install
> the Haskell Platform from source. It built quite a bit of stuff, with many
> warnings but no errors, and then finally died with the error below.
>
>
On Mon, Sep 14, 2009 at 12:24 PM, minh thu wrote:
> Hi,
>
> I'd like to know if this should work:
>
> -- GHC coercion
> getFloat :: BHeader -> Get Float
> getFloat h =
> case endianness h of
> LittleEndian -> fmap (coerce . fromIntegral) getWord32le
> BigEndian -> fmap (coerce . fromIntegra
On Dec 17, 2007 1:04 PM, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]> wrote:
>
> On Dec 17, 2007, at 15:41 , Brent Yorgey wrote:
>
> > Yes, and in fact, you don't even need foldM. The only thing that
> > actually uses IO is the readFile, so ideally
>
> Actually, a quick check indicates that the re
I neglected to CC the below email to haskell-cafe; apologies if anyone
gets this twice.
-- Forwarded message --
From: Judah Jacobson <[EMAIL PROTECTED]>
Date: Dec 21, 2007 2:12 PM
Subject: Re: [Haskell-cafe] Re: ANNOUNCE: GHC version 6.8.2
To: John Dorsey <[EMAIL PROTECT
On Jan 3, 2008 4:26 PM, Magnus Therning <[EMAIL PROTECTED]> wrote:
> GHC 6.8 has just made it into Debian in a usable form. (w00t!)
>
> Due to the library split my old cabal files don't work any longer.
> updating them isn't the problem, the problem is keeping them compatible
> with both versions
On Jan 30, 2008 8:31 AM, Bryan O'Sullivan <[EMAIL PROTECTED]> wrote:
> Peter Verswyvelen wrote:
>
> > Then I tried the "seq" hack to force the handle opened by readFile to be
> > closed, but that did not seem to work either. For example, the following
> > still gave access denied:
> >
> > main =
On Sat, Aug 21, 2010 at 10:58 AM, John Millikin wrote:
> I think the docs are wrong, or perhaps we're misunderstanding them.
> Magnus is correct.
>
> Attached is a test program which listens on two ports, 42000 (blocking
> IO) and 42001 (non-blocking). You can use netcat, telnet, etc, to send
> it
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 press a key. Does getChar blocks the
> other threads?
>
I think this behavior is caused by (or at least related to) the
following
On Tue, Sep 16, 2008 at 4:49 PM, John MacFarlane <[EMAIL PROTECTED]> wrote:
> I'm hoping some Haskell developers who use Macs can help me with this
> one. I can install pcre-light just fine using cabal install. But when I
> try to use it, I get this error:
> [snip]
> OK, so it can't find the pcre l
On Thu, Sep 18, 2008 at 9:46 AM, Marco Túlio Gontijo e Silva
<[EMAIL PROTECTED]> wrote:
> 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
On Sun, Oct 5, 2008 at 6:01 PM, Jared Updike <[EMAIL PROTECTED]> wrote:
> Thanks for trying out my code. I'm glad it's not particular to my system.
>
> I suspected it had to do with the GHC RTS monkeying around with the
> heap (lower precisions print more iterations and maybe aren't moving
> throug
On Fri, Nov 28, 2008 at 2:37 PM, Paul Brown <[EMAIL PROTECTED]> wrote:
>
> All --
>
> Anyone have a definitive list of editline keybindings available? I find
> myself missing some of the capabilities of readline, and there doesn't seem
> to be documentation.
You can usually get this from "man edi
On Mon, Dec 1, 2008 at 4:55 PM, Evan Laforge <[EMAIL PROTECTED]> wrote:
> On Mon, Dec 1, 2008 at 4:39 PM, Andrea Rossato
> <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I'm writing the bindings to a C library which uses, in some functions,
>> global variables.
>>
>> To make it clearer, those functions
On Tue, Dec 2, 2008 at 9:49 AM, Tobias Kräntzer
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to haskell and wonted to start tinkering a bit with this language,
> specifically with HXQ. I have installed ghc with macports.
>
> Now while building HXQ I get the following error:
>
> Main.hs:20:9:
>N
On Wed, Dec 3, 2008 at 11:53 AM, Andrew Coppin
<[EMAIL PROTECTED]> wrote:
> Brandon S. Allbery KF8NH wrote:
>>
>> On 2008 Dec 2, at 14:44, Andrew Coppin wrote:
>>>
>>> Regardless, it has been my general experience that almost everything
>>> obtained from Hackage fails miserably to compile under Win
On Fri, Dec 5, 2008 at 1:10 PM, Martijn van Steenbergen
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> This week I upgraded to GHC 6.10 using the .pkg installer. It installed
> without a single hiccup -- thanks!
>
> I've noticed two odd things: the standard library haddock that comes with
> the installer
On Thu, Jan 1, 2009 at 10:39 AM, Sebastiaan Visser wrote:
> On Jan 1, 2009, at 7:15 PM, Gwern Branwen wrote:
>>
>> On Thu, Jan 1, 2009 at 9:04 AM, Sebastiaan Visser wrote:
>>>
>>> Happy new year, you all!
>>>
>>> I'm pleased to announce three new packages on Hackage:
>>> ...
>>
>> Miscellaneous c
On Tue, Jan 13, 2009 at 6:03 AM, Mauricio wrote:
>>> Haskeline is designed to remove the readline dependency, because Windows
>>> does not have readline. So rlwrap is useless there.
>>>
>>
>> Ah, I hadn't considered Windows support--that makes sense. Thanks,
>> that answers my questions.
>>
>> A
On Wed, Sep 23, 2009 at 12:23 AM, Colin Adams
wrote:
> 2009/9/22 Brandon S. Allbery KF8NH :
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On Sep 22, 2009, at 13:44 , Colin Adams wrote:
>>>
>>> It needs some missing C libraries - gd, png, jpeg, fontconfig and
>>> freetype.
>>> Does anyo
On Tue, Oct 6, 2009 at 11:41 AM, Arne Dehli Halvorsen
wrote:
> This may be a little off-topic, but if someone could help me, I'd be
> grateful.
> I am trying to get to a working gtk2hs environment in MacOSX Snow Leopard
>
> I have a Macbook Pro 2.1 with Snow Leopard.
> While I had Leopard, I had t
On Fri, Dec 25, 2009 at 2:17 AM, Andrew U. Frank
wrote:
> i tried to install editline (because i wanted to install djinn, which depends
> on it):
> with cabal install and with downloading and runghc Setup.lhs configure
> i got the same error:
>
> checking for completion_matches... no
> configure:
On Mon, Dec 28, 2009 at 11:48 PM, Alexy Khrabrov wrote:
> I've tried to do cabal install readline on Snow Leopard with MacPorts and it
> fails with the infamous:
>
> $ cabal install readline
> ...
> checking for GNUreadline.framework... checking for readline... no
> checking for tputs in -lncurse
On Fri, Jan 1, 2010 at 7:09 AM, Tom Hawkins wrote:
> I have a large tarball I want to link into an executable as a
> ByteString. What is the best way to do this? I can convert the
> tarball into a haskell file, but I'm afraid ghc would take a long time
> to compile it. Is there any way to link
On Fri, Feb 5, 2010 at 10:41 AM, Andrew Coppin
wrote:
> Tim Attwood wrote:
>>>
>>> Last time I tried something like this [on Windows], it didn't seem to
>>> work. I wanted to trap arrow keys and so forth, but they seem to be being
>>> used for input history. (I.e., pressing the up-arrow produces
>
Alternately, the "standard" way to use profiling with template haskell
is a 2-stage process:
- First, compile all of the modules normally, *without* -prof
- Then, compile all of the module again, with the following flags:
-prof -osuf p_o
These steps, and the reason this workaround is necessary, a
Hi all,
Given the recent discussion about adding top-level mutable state to
Haskell, I thought it might be a good time to throw my own proposal
into the ring. If enough people think it's worth considering, I can
add it to the wiki page.
(http://www.haskell.org/haskellwiki/Top_level_mutable_state
On 5/26/07, Adrian Hey <[EMAIL PROTECTED]> wrote:
Judah Jacobson wrote:
> In contrast to recent proposals, this one requires no extra syntax or
> use of unsafe functions by the programmer.
I'm not aware of any proposals (recent or ancient:-) that require the
use of unsafe
Can you try running the setup script manually?
ghc --make Setup.hs
./Setup configure
and see if it prints an error that's any more helpful?
Also, what operating system and version of ghc do you have?
-Judah
On Sat, Sep 14, 2013 at 1:57 PM, David Banas wrote:
> Has anyone else hit an unexpl
Hi Denis,
I was unable to run your program; it looks like there's a missing
module 'Properties'. To include it in the sdist you probably need to
add it under the other-modules field in the .cabal file.
-Judah
2008/2/26 Denis Bueno <[EMAIL PROTECTED]>:
> Hi all,
>
> I've got some code crashing
On Sat, Mar 15, 2008 at 2:04 PM, Uwe Hollerbach <[EMAIL PROTECTED]> wrote:
>
> Hi, all, I have an old iMac G3, running OSX 10.3.9, to which I have a
> sentimental attachment. I'd like to get ghc running on it, but the
> pre-built binaries I can find are all for more-recent iMacs, so I
> thought
On Thu, Apr 10, 2008 at 7:50 AM, Adam Smyczek <[EMAIL PROTECTED]> wrote:
> For a small webapi binding I try to implement a session like monad
> by building a stack including BrowserAction from Network.Browser
> module as following:
>
> newtype RBAction a = RBAction
> { exec :: ErrorT String
2008/6/6 Patrick Perry <[EMAIL PROTECTED]>:
>
> Apart from some warnings, the library compiles fine in my
> system. But there is a minor issue about the library it
> links against when `./Setup test'. I need to use `-lcblas'
> instead of `-lblas' to get it to link to correct libraries.
> I don't
2008/6/9 Galchin, Vasili <[EMAIL PROTECTED]>:
> Ryan,
>
> I tried but the compiler didn't seem to like the keyword "import":
>
> [EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0/tests/timer$ runhaskell
> Setup.lhs build
> Preprocessing executables for Test-1.0...
> Building Test-1.0...
> [1 of 1]
On Fri, Jun 13, 2008 at 4:39 PM, Jason Dusek <[EMAIL PROTECTED]> wrote:
> I'm trying to build the LDAP libs, version 0.6.3, on a recent
> MacBook Air with OpenLDAP 2.3.27 (the version of OpenLDAP
> shipped by Apple).
>
> The "atom sorting error" I get from `ld` is outside my range
> of knowled
On Tue, Aug 26, 2008 at 12:07 AM, Adrian Hey <[EMAIL PROTECTED]> wrote:
>
>
> But from a top level aThing <- someACIO point of view, if we're going to
> say that it doesn't matter if someACIO is executed before main is
> entered (possibly even at compile time) or on demand, then we clearly
> don't
On Tue, Aug 26, 2008 at 3:15 AM, Ashley Yakeley <[EMAIL PROTECTED]> wrote:
> Judah Jacobson wrote:
>>
>> I've been wondering: is there any benefit to having top-level ACIO'd
>> <- instead of just using runOnce (or perhaps "oneshot") as the
>&
On Tue, Aug 26, 2008 at 2:49 PM, Tim Newsham <[EMAIL PROTECTED]> wrote:
> Like everyone else who has used Haskell for a while, I'm accumulating
> functions which I feel should have already been in the standard
> libraries. What's the normal path to contributing functions for
> consideration in fut
On Sun, Feb 1, 2009 at 10:04 AM, Antoine Latter wrote:
> On Sun, Feb 1, 2009 at 12:01 PM, Thomas Davie wrote:
>> This is caused by OS X's libiconv being entirely CPP macros, the FFI has
>> nothing to get hold of. IIRC there's a ghc bug report open for it.
>>
>> Bob
>>
>
> So why does it sometime
On Sun, Feb 1, 2009 at 4:07 PM, Duncan Coutts
wrote:
> [re-sending the cc to -cafe as I sent from the wrong address the first time]
>
> On Sun, 2009-02-01 at 12:43 -0600, Antoine Latter wrote:
>
>> After a bit of digging, I saw this snippet in the .cabal file for the
>> iconv package on hackage:
>
On Mon, Feb 23, 2009 at 6:48 AM, Henning Thielemann
wrote:
>
> On Mon, 23 Feb 2009, Felipe Lessa wrote:
>
>> On Mon, Feb 23, 2009 at 10:12 AM, Henning Thielemann
>> wrote:
>>>
>>> Is still someone on haskell.org ?
>>
>> Sorry, I don't know :).
>
> I meant f...@haskell.org
>
>>> Do I have to use '
On Mon, Feb 23, 2009 at 9:02 AM, Judah Jacobson
wrote:
> On Mon, Feb 23, 2009 at 6:48 AM, Henning Thielemann
> wrote:
>>
>> On Mon, 23 Feb 2009, Felipe Lessa wrote:
>>
>>> On Mon, Feb 23, 2009 at 10:12 AM, Henning Thielemann
>>> wrote:
>>>>
On Tue, Mar 31, 2009 at 12:53 PM, Andrew Coppin
wrote:
> Edward Kmett wrote:
>>
>> You want to use:
>> > main = do hSetBuffering stdin NoBuffering; c <- getChar
>
> Already tried that. It appears to make no difference.
Sounds like you're on Windows, so it's probably this bug:
http://hackage.has
On Tue, Mar 31, 2009 at 2:11 PM, Andrew Coppin
wrote:
> Judah Jacobson wrote:
>>
>> Sounds like you're on Windows, so it's probably this bug:
>>
>> http://hackage.haskell.org/trac/ghc/ticket/2189
>>
>
> I am on Windows. It looks like my progr
On Sun, Apr 5, 2009 at 10:06 AM, Martijn van Steenbergen
wrote:
> Hello café,
>
> I'm trying to write an executable that depends on Yogurt-0.3, readline
> (indirectly) and hint. However, including hint in the build-depends field
> causes cabal to link the executable against editline instead of rea
On Thu, Jan 19, 2012 at 10:15 AM, Dominic Espinosa 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 functions in the
>
Two possible fixes come to mind:
1) In the .cabal file for cautious-file, it says:
Flag posix
description: Use POSIX-specific features
default: True
You can use "cabal install -fposix cautious-file" to explicitly turn
on POSIX support, and "cabal install -f-posix cautious-file" to
explic
On Sat, Nov 20, 2010 at 6:55 AM, Marcelo Sousa wrote:
> Hi,
> I'm having currently a problem with System.Directory in my mac os.
> System Version: Mac OS X 10.6.5
> Kernel Version: Darwin 10.5.0
> Prelude System.Directory> let dirTest = do {dir <- getCurrentDirectory;
> doesDirectoryExist dir}
Hi John,
You should be able to install the Apple Developer Tools directly from
one of the software installation DVDs that come with the Mac. If
you're not downloading the tools from online, you shouldn't need to
register.
Best,
-Judah
On Fri, Jun 3, 2011 at 1:03 PM, John D. Ramsdell wrote:
> I
On Thu, Jul 28, 2011 at 7:59 AM, Tom Murphy wrote:
> +1 - does anyone know the answer to this?
>
> On Jul 27, 2011 2:04 PM, "Chris Smith" wrote:
>> On Wed, 2011-07-27 at 07:20 -0400, Jack Henahan wrote:
>>> Bundling things with the HP is just going to bloat that download
>>> and confuse new users
On Mon, Oct 17, 2011 at 2:56 AM, Luis Cabellos wrote:
>
> Other issues to solve,
> How to compile in hackage server to generate documentation online?
> opencl.h isn't in the server so I getting errors.
>
In my experience, the nicest way to work around this problem is to
just generate the document
What about the following? It does use unsafePerformIO, but only to
wrap newMVar in this
specific case.
once :: Typeable a => IO a -> IO a
once m = let {-# NOINLINE r #-}
r = unsafePerformIO (newMVar Nothing)
in do
y <- takeMVar r
x <- case y of
On Thu, 11 Nov 2004 09:16:04 +, Adrian Hey <[EMAIL PROTECTED]> wrote:
>
> That's the trouble with unsafePerformIO. Haskell is supposed to be a
> purely functional language and the compiler will assume all functions
> are pure. As soon as you use unsafePerformIO to create something that
> isn't
On Thu, 11 Nov 2004 12:27:17 +, Ben Rudiak-Gould
<[EMAIL PROTECTED]> wrote:
>
> On the other hand, these are perfectly safe:
>
> once' :: IO a -> IO (IO a)
> oncePerString :: String -> IO a -> IO a
> oncePerType :: Typeable a => IO a -> IO a
>
> once' seems virtually useless un
On Thu, 11 Nov 2004 20:14:24 +, Keean Schupke
<[EMAIL PROTECTED]> wrote:
> I think you are right... The only safe operation I can see for a
> one-time init
> is type IO (). All results have to be returned via side effects. Hence with
> my named-MVar proposal the first execution of the init func
On Fri, 12 Nov 2004 14:53:33 +, Adrian Hey <[EMAIL PROTECTED]> wrote:
> On Thursday 11 Nov 2004 12:27 pm, Ben Rudiak-Gould wrote:
>
>
> > On the other hand, these are perfectly safe:
> >
> > once' :: IO a -> IO (IO a)
> > oncePerString :: String -> IO a -> IO a
> > oncePerType :
On Thu, 25 Nov 2004 01:46:03 +, Ben Rudiak-Gould
<[EMAIL PROTECTED]> wrote:
> Benjamin Franksen wrote:
>
> > My god, what a stupid mistake. I should just give it up... :-(
>
> Funny you should say that, because I made the same mistake two weeks ago
> and felt the same way:
>
> http://www
I had this happen to me a few weeks ago; the fix was to upgrade make
using fink. Right now I have v.3.79.1; which version do you have?
-Judah
On Fri, 25 Feb 2005 16:51:58 -0600, Arjun Guha <[EMAIL PROTECTED]> wrote:
> I'm having trouble compiling GHC from CVS. Make seems to be looping
> infini
61 matches
Mail list logo