Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Haskell Package for Mac issues (Andrew n marshall)
   2. Re:  Haskell Package for Mac issues (Andrew n marshall)
   3.  Haddock question (Patrick LeBoutillier)
   4. Re:  Haddock question (Stephen Tetley)
   5. Re:  Happstack dependency problems (Daniel Fischer)
   6. Re:  Haddock question (Patrick LeBoutillier)
   7. Re:  Haddock question (Daniel Fischer)
   8. Re:  Haskell Package for Mac issues (Benedict Eastaugh)
   9. Re:  Happstack dependency problems (Antoine Latter)


----------------------------------------------------------------------

Message: 1
Date: Tue, 05 Apr 2011 12:53:40 -0700
From: Andrew n marshall <[email protected]>
Subject: Re: [Haskell-beginners] Haskell Package for Mac issues
To: Benedict Eastaugh <[email protected]>, [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Homebrew installed ghc 6.12.3, but not cabal, and does not seem to work 
for me at all.

Downloaded the 32bit Haskell Platform, and now things seem to work.  
64bit build seems to be the root cause.


On 4/5/11 9:48 AM, Benedict Eastaugh wrote:
> On 5 April 2011 16:46, Andrew n marshall<[email protected]>  wrote:
>> I've been using the Haskell package for the last week to learn Haskell, but
>> I've found several issues that make it feel like abandonware (which I know
>> its not).
>>
>> I'm running OS X 10.6.7 with XCode 4 and installed the Haskell Platform
>> 2011.2.0.0-x86_64.pkg.
>> (I just realized this is labeled an experiment build.  I hope that isn't the
>> root of my problems.  Tell me if it is.)
> Have you considered installing the Haskell Platform and GHC with
> Homebrew instead? I haven't installed XCode 4 yet, but Homebrew does
> make installing new versions of GHC and the Platform pretty painless.
>
> http://mxcl.github.com/homebrew/




------------------------------

Message: 2
Date: Tue, 05 Apr 2011 13:38:37 -0700
From: Andrew n marshall <[email protected]>
Subject: Re: [Haskell-beginners] Haskell Package for Mac issues
To: Andrew n marshall <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 4/5/11 12:53 PM, Andrew n marshall wrote:
> Downloaded the 32bit Haskell Platform, and now things seem to work.  
> 64bit build seems to be the root cause.

Strike that.   I had forgotten that I left a 10.5 SDK symlink in place, 
which I think I'm going to live with for the time being. <sigh>

Also... I forgot to run brew update before installing ghc, which gave me 
the older version.  Looking through the Homebrew formulas, I see 
Homebrew is suppose to install ghc 7.0.3


>
>
> On 4/5/11 9:48 AM, Benedict Eastaugh wrote:
>> On 5 April 2011 16:46, Andrew n 
>> marshall<[email protected]>  wrote:
>>> I've been using the Haskell package for the last week to learn 
>>> Haskell, but
>>> I've found several issues that make it feel like abandonware (which 
>>> I know
>>> its not).
>>>
>>> I'm running OS X 10.6.7 with XCode 4 and installed the Haskell Platform
>>> 2011.2.0.0-x86_64.pkg.
>>> (I just realized this is labeled an experiment build.  I hope that 
>>> isn't the
>>> root of my problems.  Tell me if it is.)
>> Have you considered installing the Haskell Platform and GHC with
>> Homebrew instead? I haven't installed XCode 4 yet, but Homebrew does
>> make installing new versions of GHC and the Platform pretty painless.
>>
>> http://mxcl.github.com/homebrew/
>




------------------------------

Message: 3
Date: Tue, 5 Apr 2011 16:39:39 -0400
From: Patrick LeBoutillier <[email protected]>
Subject: [Haskell-beginners] Haddock question
To: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I have a module that contains (among other stuff) the following code:

module Music.Diatonic.Note (
    Note(
        C,D,E,F,G,A,B
      ), Nte,
        noteMap, ($#),
  ) where


-- | Use these constructors to create 'Note's. To alter them, use the
'flat' or 'sharp' functions.
data Note = C | D | E | F | G | A | B | Note Accidental Note
            deriving (Eq)

-- | Many musical objects have a note at their core (scales, chords,
...). The 'Nte' class allows these objects
--   to make use of all the note-manipulating functions.
class Nte a where
  -- | Applies a 'Note' manipulating function to an instance of the 'Nte' class.
  noteMap :: (Note -> Note) -> a -> a
  -- | Operator for 'noteMap'.
  ($#) :: (Note -> Note) -> a -> a
  ($#) = noteMap


When I run haddock on it it gives the following warnings that I don't
really understand:

Warning: Music.Diatonic.Note: noteMap is exported separately but will
be documented under Nte. Consider exporting it together with its
parent(s) for code clarity.
Warning: Music.Diatonic.Note: $# is exported separately but will be
documented under Nte. Consider exporting it together with its
parent(s) for code clarity.
Warning: Music.Diatonic.Note: notes is exported separately but will be
documented under Nts. Consider exporting it together with its
parent(s) for code clarity.

What exactly does this mean? I am exporting Type class stuff inapproriately?


Patrick




-- 
=====================
Patrick LeBoutillier
Rosem?re, Qu?bec, Canada



------------------------------

Message: 4
Date: Tue, 5 Apr 2011 22:06:37 +0100
From: Stephen Tetley <[email protected]>
Subject: Re: [Haskell-beginners] Haddock question
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

The common way to export type classes is

  Nte(..)

I'm not sure what happens if you export the "closed" class and the
methods separately - I'd guess it means you can use the methods and
put the class name in type signatures but can't declare new instances.
As I've never needed to close classes, it's not something I've looked
into.



------------------------------

Message: 5
Date: Tue, 5 Apr 2011 23:13:47 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Happstack dependency problems
To: Tom Murphy <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: Text/Plain;  charset="utf-8"

On Tuesday 05 April 2011 21:08:10, Tom Murphy wrote:
> $ ghc-pkg check report
> ghc-pkg: command-line syntax error
> Usage:
>   ghc-pkg register {filename | -}
> [...]
> 

Aw, I should've used quotes or a separate line, the command is

$ ghc-pkg check

I meant: what does "ghc-pkg check" report.

> 
> $ cabal install -v3 --dry-run happstack

Unfortunately, that wasn't helpful, gave me no clue why it would want to 
install unix-2.4.2.0
:(



------------------------------

Message: 6
Date: Tue, 5 Apr 2011 17:22:51 -0400
From: Patrick LeBoutillier <[email protected]>
Subject: Re: [Haskell-beginners] Haddock question
To: Stephen Tetley <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Stephen,

Great. That solved the warnings.

Patrick

On Tue, Apr 5, 2011 at 5:06 PM, Stephen Tetley <[email protected]> wrote:
> The common way to export type classes is
>
> ?Nte(..)
>
> I'm not sure what happens if you export the "closed" class and the
> methods separately - I'd guess it means you can use the methods and
> put the class name in type signatures but can't declare new instances.
> As I've never needed to close classes, it's not something I've looked
> into.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
=====================
Patrick LeBoutillier
Rosem?re, Qu?bec, Canada



------------------------------

Message: 7
Date: Tue, 5 Apr 2011 23:22:30 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Haddock question
To: [email protected], Stephen Tetley <[email protected]>,
        Patrick LeBoutillier <[email protected]>
Message-ID: <[email protected]>
Content-Type: Text/Plain;  charset="iso-8859-1"

On Tuesday 05 April 2011 23:06:37, Stephen Tetley wrote:
> The common way to export type classes is
> 
>   Nte(..)
> 
> I'm not sure what happens if you export the "closed" class and the
> methods separately - I'd guess it means you can use the methods and
> put the class name in type signatures but can't declare new instances.

You can. It's just uncommon to export the methods separate from the class, 
and maybe a little bug-prone for refactoring.
It's a style warning, haddock gives, nothing more.

> As I've never needed to close classes, it's not something I've looked
> into.



------------------------------

Message: 8
Date: Tue, 5 Apr 2011 22:31:51 +0100
From: Benedict Eastaugh <[email protected]>
Subject: Re: [Haskell-beginners] Haskell Package for Mac issues
To: Andrew n marshall <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 5 April 2011 21:38, Andrew n marshall <[email protected]> wrote:
> Also... I forgot to run brew update before installing ghc, which gave me the
> older version. ?Looking through the Homebrew formulas, I see Homebrew is
> suppose to install ghc 7.0.3

Yes, the new GHC and Haskell Platform were added quite recently. It
should be fine to just run `brew install haskell-platform` again now
you've updated. GHC 7.0.3 fixes an issue that people were having with
XCode 4, although I don't know if that was the same problem that you
were having.

Benedict.



------------------------------

Message: 9
Date: Tue, 5 Apr 2011 20:01:43 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] Happstack dependency problems
To: Daniel Fischer <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Tue, Apr 5, 2011 at 4:13 PM, Daniel Fischer
<[email protected]> wrote:
> On Tuesday 05 April 2011 21:08:10, Tom Murphy wrote:
>> $ ghc-pkg check report
>> ghc-pkg: command-line syntax error
>> Usage:
>> ? ghc-pkg register {filename | -}
>> [...]
>>
>
> Aw, I should've used quotes or a separate line, the command is
>
> $ ghc-pkg check
>
> I meant: what does "ghc-pkg check" report.
>
>>
>> $ cabal install -v3 --dry-run happstack
>
> Unfortunately, that wasn't helpful, gave me no clue why it would want to
> install unix-2.4.2.0
> :(

Maybe we can try to break the problem down into smaller pieces.

Happstack is composed of multiple packages, and you could try them one
at a time to narrow things down a bit:

happstack-util
happstack-data
happstack-state
happstack-ixset
happstack-server
happstack

If you cabal install each one of the above in turn (and in order!) it
will mimic "cabal install happstack" fairly well.

Antoine



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 34, Issue 14
*****************************************

Reply via email to