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:  ld: warning: directory not found for option
      '-L/private/tmp/ghc20150401-90656-rxy9sj/ghc-7.10.1/gmp-static'
      (Peng Yu)
   2. Re:  How to check the help page of a function?
      (Raphael Gaschignard)
   3. Re:  How to check the help page of a function? (Brandon Allbery)
   4. Re:  which ones to use (Magnus Therning)
   5.  Iterating through lists (Dananji Liyanage)
   6. Re:  Iterating through lists (Magnus Therning)
   7. Re:  Iterating through lists (Henk-Jan van Tuyl)


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

Message: 1
Date: Sun, 17 May 2015 16:37:18 -0500
From: Peng Yu <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] ld: warning: directory not found for
        option  '-L/private/tmp/ghc20150401-90656-rxy9sj/ghc-7.10.1/gmp-static'
Message-ID:
        <CABrM6wm5YVau2w03gDzqh8eJm4Dk-yJMVYgRDA+PxB8C=yy...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

What is the solution?

On Fri, May 15, 2015 at 11:21 PM, akash g <[email protected]> wrote:
> Seems like other people are also have the same issue.
>
> https://github.com/Homebrew/homebrew/issues/38315
>
> On Sat, May 16, 2015 at 7:38 AM, Peng Yu <[email protected]> wrote:
>>
>> Hi, I see the following error. Does anybody know what is wrong? Thanks.
>>
>> $ cat hello.hs
>> main = putStrLn "Hello, World!"
>> $ ghc -o hello hello.hs
>> [1 of 1] Compiling Main             ( hello.hs, hello.o )
>> Linking hello ...
>> ld: warning: directory not found for option
>> '-L/private/tmp/ghc20150401-90656-rxy9sj/ghc-7.10.1/gmp-static'
>>
>> --
>> Regards,
>> Peng
>> _______________________________________________
>> 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
>



-- 
Regards,
Peng


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

Message: 2
Date: Mon, 18 May 2015 02:17:22 +0000
From: Raphael Gaschignard <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to check the help page of a
        function?
Message-ID:
        <caad0ehwg6ky-nlaapu+8xzrqueugzvftmf_k-rek5mf+zqq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Kind of surprised at the attitude shown in this thread. It's entirely
reasonable to expect a REPL to offer help functionality (especially coming
from Python/R), even if , digging deeper, it turns out to be difficult to
offer. Mainly because docs aren't auto-included with packages.

   ghci isn't meant to be a full-blown dev environment, but hey the python
console isn't meant to either.

  I think a tangential issue is that there's no "blessed" solution, so
we're worried about lock-in.

https://wiki.haskell.org/GHC/GHCi <-- this page describes how to set up
your environment to get output from hoogle into ghci (by doing :hoogle map
for example).


On Mon, May 18, 2015 at 2:28 AM Kim-Ee Yeoh <[email protected]> wrote:

>
> On Sun, May 17, 2015 at 6:18 AM, Peng Yu <[email protected]> wrote:
>
>> Many other languages have help pages in the command (see help() in
>> python and R). Why haskell doesn't have such a feature?
>>
>
> You could flip the question around and ask, why do Python and R insist on
> incorporating emacs functionality in their REPLs instead of keeping things
> orthogonal. Otherwise, there's a lot of repetition.
>
> As Brandon explained, ghci isn't meant to be the
> everything-and-the-kitchen-sink development environment.
>
> It used to be that someone starting Haskell would have learned Unix and
> its ethos beforehand. That's not a ding against you, btw, just an
> observation that ghci was designed in an earlier era. Patches to ghci are
> most welcome!
>
> -- Kim-Ee
>  _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150518/01714040/attachment-0001.html>

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

Message: 3
Date: Sun, 17 May 2015 22:33:44 -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] How to check the help page of a
        function?
Message-ID:
        <cakfcl4xqdat5igmrf33jxqa_-zpb4x40eznabkhzrwdvfn0...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sun, May 17, 2015 at 10:17 PM, Raphael Gaschignard <[email protected]>
wrote:

>  ghci isn't meant to be a full-blown dev environment, but hey the python
> console isn't meant to either.


I should stress that I did not intend so much to say that the OP was asking
for something out of line; more that ghci is known to be old, limited, and
annoying to maintain and really needs to be replaced --- someday.
Unfortunately, that replacement will require a lot of work, because
ghc-api. :/

-- 
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/20150517/53f45e10/attachment-0001.html>

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

Message: 4
Date: Mon, 18 May 2015 12:01:47 +0200
From: Magnus Therning <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] which ones to use
Message-ID:
        <CAAExw5stUscFG=N+dsnHQ=nz7dvrfc1pwf9trw14n37r5b+...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On 17 May 2015 at 21:23, Roelof Wobben <[email protected]> wrote:
> Hello,
>
> My linux distro has haskell-platform not avaible.
> But things like ghc and cabal are avaible.

Which distro is it?

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: [email protected]   jabber: [email protected]
twitter: magthe               http://therning.org/magnus


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

Message: 5
Date: Mon, 18 May 2015 16:53:41 +0530
From: Dananji Liyanage <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] Iterating through lists
Message-ID:
        <caapsy8z60qkjd-ucugsdjrgec0o-rg+3v-axt7epi6m4chq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi All,

I'm building a 9x9 grid like list, and I want to extract each column of
that grid.

My input is a list of integers as follows;

input = [0, 0, 0, 0, 0, 0, 4, 0, 9,
0, 0, 0, 0, 8, 0, 0, 5, 0,
7, 0, 2, 4, 5, 3, 6, 0, 0,
6, 7, 0, 0, 0, 1, 5, 0, 2,
2, 0, 8, 7, 0, 4, 3, 0, 1,
9, 0, 4, 5, 0, 0, 0, 8, 6,
0, 0, 6, 3, 1, 9, 8, 0, 7,
0, 2, 0, 0, 7, 0, 0, 0, 0,
1, 0, 7, 0, 0, 0, 0, 0, 0]

I tried list comprehension with 'take' function in lists as follows;

columns xs = [x | x <- (take 1 xs)] : columns (drop 9 xs) --> columns input

This extracts only the first column. How I can go for the other columns?

-- 
Regards,
Dananji Liyanage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150518/1f465db7/attachment-0001.html>

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

Message: 6
Date: Mon, 18 May 2015 13:36:11 +0200
From: Magnus Therning <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Iterating through lists
Message-ID:
        <caaexw5tkdh6ylxtoanwphbv+rduoe0flwlkk4s-6a7mhe5a...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On 18 May 2015 at 13:23, Dananji Liyanage <[email protected]> wrote:
> Hi All,
>
> I'm building a 9x9 grid like list, and I want to extract each column of that
> grid.
>
> My input is a list of integers as follows;
>
> input = [0, 0, 0, 0, 0, 0, 4, 0, 9,
> 0, 0, 0, 0, 8, 0, 0, 5, 0,
> 7, 0, 2, 4, 5, 3, 6, 0, 0,
> 6, 7, 0, 0, 0, 1, 5, 0, 2,
> 2, 0, 8, 7, 0, 4, 3, 0, 1,
> 9, 0, 4, 5, 0, 0, 0, 8, 6,
> 0, 0, 6, 3, 1, 9, 8, 0, 7,
> 0, 2, 0, 0, 7, 0, 0, 0, 0,
> 1, 0, 7, 0, 0, 0, 0, 0, 0]
>
> I tried list comprehension with 'take' function in lists as follows;
>
> columns xs = [x | x <- (take 1 xs)] : columns (drop 9 xs) --> columns input
>
> This extracts only the first column. How I can go for the other columns?

One easy way would be to first look at the `split` package to find the
function `chunksOf` and then simply `Data.List.transpose` the result.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: [email protected]   jabber: [email protected]
twitter: magthe               http://therning.org/magnus


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

Message: 7
Date: Mon, 18 May 2015 13:39:07 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <[email protected]>,
        "Dananji Liyanage" <[email protected]>
Subject: Re: [Haskell-beginners] Iterating through lists
Message-ID: <op.xytxbhdspz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
        delsp=yes

On Mon, 18 May 2015 13:23:41 +0200, Dananji Liyanage <[email protected]>  
wrote:

> Hi All,
>
> I'm building a 9x9 grid like list, and I want to extract each column of
> that grid.
>
> My input is a list of integers as follows;
>
> input = [0, 0, 0, 0, 0, 0, 4, 0, 9,
> 0, 0, 0, 0, 8, 0, 0, 5, 0,
> 7, 0, 2, 4, 5, 3, 6, 0, 0,
> 6, 7, 0, 0, 0, 1, 5, 0, 2,
> 2, 0, 8, 7, 0, 4, 3, 0, 1,
> 9, 0, 4, 5, 0, 0, 0, 8, 6,
> 0, 0, 6, 3, 1, 9, 8, 0, 7,
> 0, 2, 0, 0, 7, 0, 0, 0, 0,
> 1, 0, 7, 0, 0, 0, 0, 0, 0]

Try the function chunksOf of package split[0]

Regards,
Henk-Jan van Tuyl


[0]  
http://haddocks.fpcomplete.com/fp/7.8/20140916-162/split/Data-List-Split-Internals.html#v:chunksOf


-- 
Folding@home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


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

Subject: Digest Footer

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


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

End of Beginners Digest, Vol 83, Issue 48
*****************************************

Reply via email to