Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/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:  Reading a list of null-terminated filenames from stdin?
      (Brandon Allbery)
   2.  Can't install Haskell platform on Mac OS X El    Capitan
      (Daniel Hegyi)
   3. Re:  Can't install Haskell platform on Mac OS X   El Capitan
      (Richard Guay)
   4. Re:  Can't install Haskell platform on Mac OS X El Capitan
      (Daniel Hegyi)
   5. Re:  Can't install Haskell platform on Mac OS X   El Capitan
      (Richard Guay)
   6. Re:  Can't install Haskell platform on Mac OS X El Capitan
      (Harald Hanche-Olsen)


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

Message: 1
Date: Sun, 11 Oct 2015 10:57:27 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Reading a list of null-terminated
        filenames from stdin?
Message-ID:
        <CAKFCL4XzukcjLtLxo_H2p=JcYRHm=e30s+wtatzmvv0pf-o...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sun, Oct 11, 2015 at 5:22 AM, Harald Hanche-Olsen <[email protected]>
wrote:

> Andrew Bernard wrote:
>
>> It may be valid, but it is just asking for trouble with many tools and
>> utilities and scripts. Funny, I had to check re UNIX. I have been
>> programming UNIX systems for over thirty years and never even imagined a
>> newline in a filename!
>>
>> Would the OP say why he needs to use newlines in filenames? Something
>> best avoided. I suppose this is not a Haskell matter, but one does have to
>> ask.
>>
>
> The OP must speak for himself, but as far as I am concerned, no reasonable
> person uses newlines in filenames, ever.
>
> However, the possibility is there, and it may happen that someone
> unreasonable has created a filename with a newline in it. This may become a
> security issue if, for example, someone creates a file named
>

This is indeed the problem. I'm a sysadmin; if I need a tool like this, I
don't usually have any say in what is in the filenames --- and, sadly,
people *do* use all manner of odd characters, including newlines, non-UTF8,
etc. It's my place to deal with what is, not what would be in an ideal
world.

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20151011/2edb4cb6/attachment-0001.html>

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

Message: 2
Date: Mon, 12 Oct 2015 05:32:05 +0000
From: Daniel Hegyi <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] Can't install Haskell platform on Mac OS
        X El    Capitan
Message-ID:
        
<by2pr12mb0292fb53a9db7c61391aac82ef...@by2pr12mb0292.namprd12.prod.outlook.com>
        
Content-Type: text/plain; charset="utf-8"

Hi,

I?m trying to install Haskell on Mac

I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/  
the Download (64 bit) (10.11).

The installer runs, however, when I type into terminal ghci I get

ghci
-bash: ghci: command not found

?which ghci? it just doesn?t return anything.

Thanks,
Daniel

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

Message: 3
Date: Mon, 12 Oct 2015 12:56:53 +0700
From: Richard Guay <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Can't install Haskell platform on Mac
        OS X    El Capitan
Message-ID:
        <CA+wdjTRNC0b046mvzC00+=t3a4x5jk5p8ut-d_lwuoe_i7w...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

The installer can't create the links to your /usr/local/bin folder
anymore under El Capitan. I just added this to my .bashrc and .zshrc
files:

export 
PATH="/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/:/Library/Haskell/bin:$HOME/Library/Haskell/bin:$PATH";

That should fix your problem. At least, it did for me.

Richard

On Mon, Oct 12, 2015 at 12:32 PM, Daniel Hegyi <[email protected]> wrote:
> Hi,
>
> I?m trying to install Haskell on Mac
>
> I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/  
> the Download (64 bit) (10.11).
>
> The installer runs, however, when I type into terminal ghci I get
>
> ghci
> -bash: ghci: command not found
>
> ?which ghci? it just doesn?t return anything.
>
> Thanks,
> Daniel
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

Message: 4
Date: Mon, 12 Oct 2015 06:05:31 +0000
From: Daniel Hegyi <[email protected]>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <[email protected]>
Subject: Re: [Haskell-beginners] Can't install Haskell platform on Mac
        OS X El Capitan
Message-ID:
        
<by2pr12mb029233a3e2cc36874d30fac9ef...@by2pr12mb0292.namprd12.prod.outlook.com>
        
Content-Type: text/plain; charset="utf-8"

How can I add this to these files? I can?t find them.

Also, I will want to compile from Emacs. Will I need to add this PATH somehow 
there as well?


> On 12 Oct 2015, at 13:56, Richard Guay <[email protected]> wrote:
> 
> The installer can't create the links to your /usr/local/bin folder
> anymore under El Capitan. I just added this to my .bashrc and .zshrc
> files:
> 
> export 
> PATH="/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/:/Library/Haskell/bin:$HOME/Library/Haskell/bin:$PATH";
> 
> That should fix your problem. At least, it did for me.
> 
> Richard
> 
> On Mon, Oct 12, 2015 at 12:32 PM, Daniel Hegyi <[email protected]> 
> wrote:
>> Hi,
>> 
>> I?m trying to install Haskell on Mac
>> 
>> I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/ 
>>  the Download (64 bit) (10.11).
>> 
>> The installer runs, however, when I type into terminal ghci I get
>> 
>> ghci
>> -bash: ghci: command not found
>> 
>> ?which ghci? it just doesn?t return anything.
>> 
>> Thanks,
>> Daniel
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

Message: 5
Date: Mon, 12 Oct 2015 13:12:12 +0700
From: Richard Guay <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Can't install Haskell platform on Mac
        OS X    El Capitan
Message-ID:
        <ca+wdjtrmzvnbmurwpyp3mhqnl+dcba8qj87989-_bh2k6eh...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Depending on the shell you are using, you will have to put it in your
.bashrc file for the bash shell or you .zshrc for zsh. Assuming you
are using the default setup, you are then using bash and will need to
add it to your .bashrc. In a unix type filesystem (which OS X is), all
files starting with a "." are invisible. In a terminal in your home
directory, type "emacs .bashrc" and add the line to the file. You can
see the file in the terminal by using "ls -a" to list everything -
even hidden files.

Once you update your .bashrc file, reload your shell. Emacs will see
it as well since it should use the PATH environment variable to find
it.

On Mon, Oct 12, 2015 at 1:05 PM, Daniel Hegyi <[email protected]> wrote:
> How can I add this to these files? I can?t find them.
>
> Also, I will want to compile from Emacs. Will I need to add this PATH somehow 
> there as well?
>
>
>> On 12 Oct 2015, at 13:56, Richard Guay <[email protected]> wrote:
>>
>> The installer can't create the links to your /usr/local/bin folder
>> anymore under El Capitan. I just added this to my .bashrc and .zshrc
>> files:
>>
>> export 
>> PATH="/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/:/Library/Haskell/bin:$HOME/Library/Haskell/bin:$PATH";
>>
>> That should fix your problem. At least, it did for me.
>>
>> Richard
>>
>> On Mon, Oct 12, 2015 at 12:32 PM, Daniel Hegyi <[email protected]> 
>> wrote:
>>> Hi,
>>>
>>> I?m trying to install Haskell on Mac
>>>
>>> I have OSX El Capitan so I downloaded from 
>>> https://www.haskell.org/platform/  the Download (64 bit) (10.11).
>>>
>>> The installer runs, however, when I type into terminal ghci I get
>>>
>>> ghci
>>> -bash: ghci: command not found
>>>
>>> ?which ghci? it just doesn?t return anything.
>>>
>>> Thanks,
>>> Daniel
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

Message: 6
Date: Mon, 12 Oct 2015 09:21:09 +0200
From: Harald Hanche-Olsen <[email protected]>
To: haskell-beginners <[email protected]>
Subject: Re: [Haskell-beginners] Can't install Haskell platform on Mac
        OS X El Capitan
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Richard Guay wrote:
> The installer can't create the links to your /usr/local/bin folder
> anymore under El Capitan.

How come? The /usr/local hierarchy is expressly excempt from the 
restrictions that apply to the rest of the /usr hierarchy.

I have all kinds of stuff in /usr/local myself, no trouble at all.

But Haskell platform used to install binaries in /usr/bin, which is 
definitely a no-no on El Capitan. I think a workaround was posted to 
this mailing list, or was it on cafe?

Personally, I have abandoned Haskell platform in favour of the 
installation instructions here:

https://github.com/bitemyapp/learnhaskell/blob/master/install.md

So I couldn't comment on the viability of the workaround that I saw.

? Harald

PS. I don't know what happens if /usr/local did not exist when you 
installed El Capitan. Is it then necessary to turn off SIP in order to 
create this directory, due to the restrictions on /usr?


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

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

End of Beginners Digest, Vol 88, Issue 9
****************************************

Reply via email to