[Haskell-cafe] cannot install regex-posix using cabal ?

2010-12-10 Thread z_axis

%ghc-pkg list|grep -i regex
regex-base-0.93.2

%cabal install regex-posix
Resolving dependencies...
Configuring regex-posix-0.94.4...
Preprocessing library regex-posix-0.94.4...
running dist/build/Text/Regex/Posix/Wrap_hsc_make failed
command was: dist/build/Text/Regex/Posix/Wrap_hsc_make 
>dist/build/Text/Regex/Posix/Wrap.hs
cabal: Error: some packages failed to install:
regex-posix-0.94.4 failed during the building phase. The exception was:
ExitFailure 1

How can i fix such a problem ?

-
e^(π.i) + 1 = 0
-- 
View this message in context: 
http://haskell.1045720.n5.nabble.com/cannot-install-regex-posix-using-cabal-tp3301201p3301201.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] ANN: archiver 0.1 and 0.2

2010-12-10 Thread Gwern Branwen
I'd like to announce a small utility and library which builds on my
WebArchive plugin for gitit: archiver
http://hackage.haskell.org/package/archiver Source is available via
`darcs get http://community.haskell.org/~gwern/archiver/`.

The library half is a simple wrapper around the appropriate HTTP
requests; the executable half reads a text file and loops as it
(slowly) fires off requests and deletes the appropriate URL.

That is, 'archiver' is a daemon which will process a specified text
file, each line of which is a URL, and will one by one request that
the URLs be archived or spidered by http://www.webcitation.org * and
http://www.archive.org ** for future reference. That is, WebCite and
the IA will store a copy of the HTML and hopefully all the non-dynamic
resources the web pages need. (An example would be
http://bits.blogs.nytimes.com/2010/12/07/palm-is-far-from-game-over-says-former-chief/
and http://webcitation.org/5ur7ifr12)

Usage of archiver might look like `while true; do archiver ~/.urls.txt
gwe...@gmail.com; done`***.

There are a number of ways to populate the source text file. For
example, I have a script `firefox-urls` which is called in my crontab
every hour, and which looks like this:

#!/bin/sh
set -e
cp `find ~/.mozilla/ -name "places.sqlite"` ~/
sqlite3 places.sqlite "SELECT url FROM moz_places, moz_historyvisits \
   WHERE moz_places.id =
moz_historyvisits.place_id and visit_date > strftime('%s','now','-1
day')*100 ORDER by \
   visit_date;" >> ~/.urls.txt
rm ~/places.sqlite

This gets all visited URLs in the last time period and prints them out
to the file for archiver to process. Hence, everything I browse is
backed-up.

More useful perhaps is a script to extract external links from
Markdown files and print them to stdout:

import System.Environment (getArgs)
import Text.Pandoc (defaultParserState, processWithM,
readMarkdown, Inline(Link), Pandoc)
main = getArgs >>= mapM readFile >>= mapM_ analyzePage
analyzePage x = processWithM printLinks (readMarkdown defaultParserState x)
printLinks (Link _ (x, _)) = putStrLn x >> return undefined
printLinks x   = return x

So now I can take `find . -name "*.page"`, pass the 100 or so Markdown
files in my wiki as arguments, and add the thousand or so external
links to the archiver queue (eg. `find . -name "*.page" | xargs
runhaskell link-extractor.hs >> ~/.urls.txt`); they will eventually be
archived/backed up and when combined with a tool like link-checker
means that there never need be any broken links since one can either
find a live link or use the archived version.

General comments: I've used archiver for a number of weeks now. It has
never caught up with my Firefox-generated backlog since WebCite seems
to have IP-based throttling so you can't request more often than once
per 20 seconds, according to my experiments, so I removed the hinotify
'watch file' functionality. It may be I was too hasty in removing it.

* http://en.wikipedia.org/wiki/WebCite
** http://en.wikipedia.org/wiki/Internet_Archive
*** There are sporadic exceptions from somewhere in the network or
HTTP libraries, I think
 http://linkchecker.sourceforge.net/

-- 
gwern
http://www.gwern.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Digestive functors 0.0.2.0

2010-12-10 Thread Larry Evans
On 12/10/10 10:38, Jasper Van der Jeugt wrote:
> Hello,
> 
> Thanks for the error report. Is blaze-html installed correctly? Could
> you cabal install blaze-html and verify that you can import Text.Blaze
> in ghci?
> 

Here's the terminal session:

--{--cut here--

/home/evansl/prog_dev/haskell/my-code/digestive-functors $ cabal install
blaze-html
Resolving dependencies...
No packages to be installed. All the requested packages are already
installed.
If you want to reinstall anyway then use the --reinstall flag.
/home/evansl/prog_dev/haskell/my-code/digestive-functors $ cat TextBlaze.hs
module TextBlaze where
  import Text.Blaze
/home/evansl/prog_dev/haskell/my-code/digestive-functors $ ghci TextBlaze.hs
GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling TextBlaze( TextBlaze.hs, interpreted )
Ok, modules loaded: TextBlaze.
*TextBlaze>

--}--cut here--

HTH.
-Larry


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell and javascript

2010-12-10 Thread Antoine Latter
One nice thing that WebSharp does is that you can annotate types and
functions and then use them on both sides - on the client and on the
server - almost transparently.

Then you can write common utility functions once, but you only
maintain one code-base and one build workflow.

I haven't used it yet, but it looks like a neat idea.

Antoine

On Fri, Dec 10, 2010 at 10:35 AM, aditya siram  wrote:
> HJScript[1] ?
>
> [1] http://hackage.haskell.org/package/HJScript-0.5.0
>
> On Fri, Dec 10, 2010 at 9:52 AM, jean-christophe mincke
>  wrote:
>> Hello,
>> I have just discovered WebSharp, a .Net product for web development that
>> allows you to write client code in F# and have it translated into
>> javascript.
>> Does anyone know about somethig similar in Haskell?
>>
>> Thank you
>> Regards
>> J-C
>>
>> ___
>> Haskell-Cafe mailing list
>> Haskell-Cafe@haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Digestive functors 0.0.2.0

2010-12-10 Thread Jasper Van der Jeugt
Hello,

Thanks for the error report. Is blaze-html installed correctly? Could
you cabal install blaze-html and verify that you can import Text.Blaze
in ghci?

Cheers,
Jasper

On Fri, Dec 10, 2010 at 5:07 PM, Larry Evans  wrote:
> On 12/09/10 16:46, Jasper Van der Jeugt wrote:
>> Hello all,
>>
>> I'm very glad to announce the 0.0.2.0 release of the digestive
>> functors library. The library provides a general API to input
>> consumption, and is an upgrade of formlets.
>>
>> I've written an announcing blogpost and tutorial with more information here:
>>
>> http://jaspervdj.be/posts/2010-12-09-digestive-functors-0.0.2.html
>>
>
> Hi jasper.
>
> Following the instructions on the .html page, I did:
>
>    cabal update
>    cabal install snap-server
>    cabal install digestive-functors-blaze
>    cabal install digestive-functors-snap
>
> However, when I tried:
>
>  runghc -v 2010-12-09-digestive-functors-0.0.2.lhs
>
> I got:
>
> --{--cut here--
>
> *** Chasing dependencies:
> Chasing modules from: *2010-12-09-digestive-functors-0.0.2.lhs
> Created temporary directory: /tmp/ghc7611_0
> *** Literate pre-processor:
> /usr/lib/ghc-6.12.1/unlit -h 2010-12-09-digestive-functors-0.0.2.lhs
> 2010-12-09-digestive-functors-0.0.2.lhs /tmp/ghc7611_0/ghc7611_0.lpp
>
> 2010-12-09-digestive-functors-0.0.2.lhs:15:9:
>    Could not find module `Text.Digestive.Blaze.Html5':
>      locations searched:
>        Text/Digestive/Blaze/Html5.hs
>        Text/Digestive/Blaze/Html5.lhs
> Failed, modules loaded: none.
> *** Deleting temp files:
> Deleting: /tmp/ghc7611_0/ghc7611_0.lpp
>
> --}--cut here--
>
>  In directory:
>
> /home/evansl/.cabal/lib/digestive-functors-blaze-0.0.2.0/ghc-6.12.1/Text/Digestive/Blaze
>
>  there is:
>
>  -rw-r--r-- 1 evansl evansl 13984 Dec 10 09:18 Html5.hi
>
> Please, what should I do?
>
> -regards,
> Larry
>
>
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell and javascript

2010-12-10 Thread aditya siram
HJScript[1] ?

[1] http://hackage.haskell.org/package/HJScript-0.5.0

On Fri, Dec 10, 2010 at 9:52 AM, jean-christophe mincke
 wrote:
> Hello,
> I have just discovered WebSharp, a .Net product for web development that
> allows you to write client code in F# and have it translated into
> javascript.
> Does anyone know about somethig similar in Haskell?
>
> Thank you
> Regards
> J-C
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Digestive functors 0.0.2.0

2010-12-10 Thread Larry Evans
On 12/09/10 16:46, Jasper Van der Jeugt wrote:
> Hello all,
> 
> I'm very glad to announce the 0.0.2.0 release of the digestive
> functors library. The library provides a general API to input
> consumption, and is an upgrade of formlets.
> 
> I've written an announcing blogpost and tutorial with more information here:
> 
> http://jaspervdj.be/posts/2010-12-09-digestive-functors-0.0.2.html
> 

Hi jasper.

Following the instructions on the .html page, I did:

cabal update
cabal install snap-server
cabal install digestive-functors-blaze
cabal install digestive-functors-snap

However, when I tried:

  runghc -v 2010-12-09-digestive-functors-0.0.2.lhs

I got:

--{--cut here--

*** Chasing dependencies:
Chasing modules from: *2010-12-09-digestive-functors-0.0.2.lhs
Created temporary directory: /tmp/ghc7611_0
*** Literate pre-processor:
/usr/lib/ghc-6.12.1/unlit -h 2010-12-09-digestive-functors-0.0.2.lhs
2010-12-09-digestive-functors-0.0.2.lhs /tmp/ghc7611_0/ghc7611_0.lpp

2010-12-09-digestive-functors-0.0.2.lhs:15:9:
Could not find module `Text.Digestive.Blaze.Html5':
  locations searched:
Text/Digestive/Blaze/Html5.hs
Text/Digestive/Blaze/Html5.lhs
Failed, modules loaded: none.
*** Deleting temp files:
Deleting: /tmp/ghc7611_0/ghc7611_0.lpp

--}--cut here--

  In directory:

/home/evansl/.cabal/lib/digestive-functors-blaze-0.0.2.0/ghc-6.12.1/Text/Digestive/Blaze

  there is:

  -rw-r--r-- 1 evansl evansl 13984 Dec 10 09:18 Html5.hi

Please, what should I do?

-regards,
Larry



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Haskell and javascript

2010-12-10 Thread jean-christophe mincke
Hello,

I have just discovered WebSharp, a .Net product for web development that
allows you to write client code in F# and have it translated into
javascript.

Does anyone know about somethig similar in Haskell?


Thank you

Regards

J-C
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell-2010 binary IO

2010-12-10 Thread John Millikin
Haskell supports binary IO via openBinaryFile, hGetBuf, and hPutBuf .
Advanced types like ByteString or Binary are not part of Haskell 2010,
I assume because they're too complex to be part of the language
standard.

On Thu, Dec 9, 2010 at 23:14, Permjacov Evgeniy  wrote:
> Does haskell 2010 include binary IO? If no, what was the reason?
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell flickr bindings: "invalid signature" when uploading

2010-12-10 Thread Dougal Stanton
Yes, that seems to be the reasonable assumption though I can't find
any good changelogs for the api. Further investigation will have to
wait until after the weekend :-)

Cheers,

D

On Fri, Dec 10, 2010 at 12:51 PM, Stuart Dootson
 wrote:
>
> On 10 Dec 2010, at 12:39 PM, Dougal Stanton  wrote:
>
>> I've mailed the maintainer of the flickr api package but thought I
>> would see if other people had this experience too. Google doesn't
>> reveal many people using this package as far as I can tell.
>>
>> In short, authentication works fine but uploading images fails with
>> this message. This happens with the included examples/Uploader.hs as
>> well as my own code.
>>
>> toRequest: POST request contains 1 files; unable to represent as query string
>> Defaulting to multiform/form-data instead
>> Flickr error:
>>
>> Code: 96
>> Type: Flickr API error
>> Details: Invalid signature
>>
>> I haven't had a chance to dive deeper into this yet, but any advice
>> gratefully received.
>>
>> Cheers,
>>
>>
>> D
>> --
>> Dougal Stanton
>> dou...@dougalstanton.net // http://www.dougalstanton.net
>
> That wouldn't surprise me - I have a suspicion the Flickr API has changed 
> since hs-flickr was released - certainly there are issues with things like 
> getting full comment information out, for which I've made some mods within a 
> local copy of hs-flickr, with a mind to push them sometime.
>
> Stuart Dootson



-- 
Dougal Stanton
dou...@dougalstanton.net // http://www.dougalstanton.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell flickr bindings: "invalid signature" when uploading

2010-12-10 Thread Stuart Dootson

On 10 Dec 2010, at 12:39 PM, Dougal Stanton  wrote:

> I've mailed the maintainer of the flickr api package but thought I
> would see if other people had this experience too. Google doesn't
> reveal many people using this package as far as I can tell.
> 
> In short, authentication works fine but uploading images fails with
> this message. This happens with the included examples/Uploader.hs as
> well as my own code.
> 
> toRequest: POST request contains 1 files; unable to represent as query string
> Defaulting to multiform/form-data instead
> Flickr error:
> 
> Code: 96
> Type: Flickr API error
> Details: Invalid signature
> 
> I haven't had a chance to dive deeper into this yet, but any advice
> gratefully received.
> 
> Cheers,
> 
> 
> D
> -- 
> Dougal Stanton
> dou...@dougalstanton.net // http://www.dougalstanton.net

That wouldn't surprise me - I have a suspicion the Flickr API has changed since 
hs-flickr was released - certainly there are issues with things like getting 
full comment information out, for which I've made some mods within a local copy 
of hs-flickr, with a mind to push them sometime.

Stuart Dootson
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] haskell flickr bindings: "invalid signature" when uploading

2010-12-10 Thread Dougal Stanton
I've mailed the maintainer of the flickr api package but thought I
would see if other people had this experience too. Google doesn't
reveal many people using this package as far as I can tell.

In short, authentication works fine but uploading images fails with
this message. This happens with the included examples/Uploader.hs as
well as my own code.

toRequest: POST request contains 1 files; unable to represent as query string
Defaulting to multiform/form-data instead
Flickr error:

 Code: 96
 Type: Flickr API error
 Details: Invalid signature

I haven't had a chance to dive deeper into this yet, but any advice
gratefully received.

Cheers,


D
-- 
Dougal Stanton
dou...@dougalstanton.net // http://www.dougalstanton.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Setting runtime memory limits on GHC programs to avoid thrashing

2010-12-10 Thread John D. Ramsdell
Enclosed is a simple script that sets GHCRTS and provides a reasonable
memory limit on systems that have /proc/meminfo.  By default, the GHC
runtime will grow to a size that can cause thrashing.

John


memfree.sh
Description: Bourne shell script
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7.0.1 developer challenges

2010-12-10 Thread John D. Ramsdell
Please excuse the grammar errors in my last post.  I was very tired.
The name of the package that supplies the free function on Linux is
procps, not procpc.  It's hosted on SourceForge.  To compile my
program, do the following:

$ mv memfree.txt memfree.l
$ make LDLIBS=-ll memfree

John

On Thu, Dec 9, 2010 at 11:36 PM, John D. Ramsdell  wrote:
> I found out how to compute a good memory limit for the GHC runtime on
> Linux systems.  One opens /proc/meminfo, and sums the free memory with
> the reclaimable memory.  The memory allocated to file buffers and the
> disk cache are reclaimable, and can be added to the memory of a
> growing GHC process.  Once you get beyond that memory size, thrashing
> is in your futures.
>
> I have enclosed a short lex program that computes the limit.  It's
> basically what is done by the procpc program called free, except that
> I printed only the number of interest to a GHC runtime.
>
> John
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Missing Functor instances in GHC 7?

2010-12-10 Thread Sebastian Fischer
On Fri, 2010-12-10 at 08:33 +, Simon Peyton-Jones wrote:
> If there's a consensus that the behaviour is wrong, or at least
> unexpected, would you like to make a reproducible test case and file a
> ticket? 

I took Erik's mail as indicator that the behaviour of GHCi is
inconsistent and unexpected:

http://hackage.haskell.org/trac/ghc/ticket/4832

Sebastian


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell-2010 binary IO

2010-12-10 Thread Michael Snoyman
On Fri, Dec 10, 2010 at 11:30 AM, Henning Thielemann
 wrote:
>
> On Fri, 10 Dec 2010, Permjacov Evgeniy wrote:
>
>> Does haskell 2010 include binary IO? If no, what was the reason?
>
> Isn't binary IO solved using ByteString and Binary packages - is there a
> need to put them into the Haskell report?

I would add that by providing the FFI, Haskell 2010 makes the
ByteString and binary packages possible and therefore it does support
binary IO, albeit the process is greatly simplified by usage of these
higher-level libraries.

Michael

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell-2010 binary IO

2010-12-10 Thread Henning Thielemann


On Fri, 10 Dec 2010, Permjacov Evgeniy wrote:


Does haskell 2010 include binary IO? If no, what was the reason?


Isn't binary IO solved using ByteString and Binary packages - is there a 
need to put them into the Haskell report?


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Missing Functor instances in GHC 7?

2010-12-10 Thread Erik Hesselink
On Fri, Dec 10, 2010 at 09:33, Simon Peyton-Jones  wrote:
> | Interestingly, if I import only Control.Applicative from within GHCi, it
> | does not find the instances defined in Control.Monad.Instances although
> | this module is imported in Control.Applicative. On the other hand, if I
> | write a file containing the line 'import Control.Applicative' and load
> | this file in GHCi then the instances from Control.Monad.Instances are
> | visible.
> |
> | Apparently, importing a module in GHCi differs from importing it in a
> | Haskell file and loading this into GHCi.
>
> I don't believe that should happen, depending on exactly what you mean by 
> "importing a module in GHCi".

I see this as well. Using "import Control.Applicative" in ghci doesn't
seem to bring the instance into scope, while using ":m
+Control.Applicative" does. See the log below. Note that the instance
really isn't available, i.e. it's not a problem with :i.

GHCi, version 7.0.1: 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 package ffi-1.0 ... linking ... done.
Prelude> :i Functor
class Functor f where
  fmap :: (a -> b) -> f a -> f b
  (GHC.Base.<$) :: a -> f b -> f a
-- Defined in GHC.Base
instance Functor Maybe -- Defined in Data.Maybe
instance Functor [] -- Defined in GHC.Base
instance Functor IO -- Defined in GHC.Base
Prelude> import Control.Applicative
Prelude Control.Applicative> :i Functor
class Functor f where
  fmap :: (a -> b) -> f a -> f b
  (<$) :: a -> f b -> f a
-- Defined in GHC.Base
instance Functor ZipList -- Defined in Control.Applicative
instance Monad m => Functor (WrappedMonad m)
  -- Defined in Control.Applicative
instance Functor (Const m) -- Defined in Control.Applicative
instance Functor Maybe -- Defined in Data.Maybe
instance Functor [] -- Defined in GHC.Base
instance Functor IO -- Defined in GHC.Base
Prelude Control.Applicative> :m +Control.Applicative
Prelude Control.Applicative> :i Functor
class Functor f where
  fmap :: (a -> b) -> f a -> f b
  (<$) :: a -> f b -> f a
-- Defined in GHC.Base
instance Functor (Either a) -- Defined in Control.Monad.Instances
instance Functor ((->) r) -- Defined in Control.Monad.Instances
instance Functor ((,) a) -- Defined in Control.Monad.Instances
instance Functor ZipList -- Defined in Control.Applicative
instance Monad m => Functor (WrappedMonad m)
  -- Defined in Control.Applicative
instance Functor (Const m) -- Defined in Control.Applicative
instance Functor Maybe -- Defined in Data.Maybe
instance Functor [] -- Defined in GHC.Base
instance Functor IO -- Defined in GHC.Base
Prelude Control.Applicative>

Erik

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Missing Functor instances in GHC 7?

2010-12-10 Thread Simon Peyton-Jones
| Interestingly, if I import only Control.Applicative from within GHCi, it
| does not find the instances defined in Control.Monad.Instances although
| this module is imported in Control.Applicative. On the other hand, if I
| write a file containing the line 'import Control.Applicative' and load
| this file in GHCi then the instances from Control.Monad.Instances are
| visible.
| 
| Apparently, importing a module in GHCi differs from importing it in a
| Haskell file and loading this into GHCi.

I don't believe that should happen, depending on exactly what you mean by 
"importing a module in GHCi".

If there's a consensus that the behaviour is wrong, or at least unexpected, 
would you like to make a reproducible test case and file a ticket?  Thanks!

Simon

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe