Send Beginners mailing list submissions to
        beginners@haskell.org

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
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

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


Today's Topics:

   1. Re:  Error stack install ghc-mod (Michael Snoyman)
   2.  ghci timings (mike h)
   3. Re:  ghci timings (mike h)


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

Message: 1
Date: Thu, 24 May 2018 21:21:36 +0300
From: Michael Snoyman <mich...@snoyman.com>
To: Beginners <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Error stack install ghc-mod
Message-ID:
        <cakt9ecmpqrkemfvp659v3o0bxh2ydgwnfyh5kmcacpnwgu-...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

ghc-mod doesn't yet support GHC 8.2 or later[1]. You'll need to use an
older version of the compiler if you want ghc-mod support. If you check out
ghc-mod's Stackage page[2], you can see that the latest snapshots
supporting it are lts-8.24 and nightly-2017-06-28, so those are options if
you need ghc-mod support. Note, however, that they're relatively old, so
may be missing other things you want.

I wrote a blog post recently about selecting older snapshots for building
tools[3], which may be helpful.

[1] On the Hackage page (http://hackage.haskell.org/package/ghc-mod), you
can see that it says base < 4.10. On this page (https://www.snoyman.com/base),
you can see that 4.10 ships with GHC 8.2. base is a library which cannot be
upgraded.
[2] https://www.stackage.org/package/ghc-mod
[3] https://www.snoyman.com/blog/2018/05/building-packages-outside-snapshots

On Thu, May 24, 2018 at 1:12 PM Dinesh Amerasekara <ddines...@yahoo.com>
wrote:

> Hi,
>
> When I executed the command *stack install ghc-mod*, it gave me the
> following error.
>
> In the dependencies for ghc-mod-5.8.0.0:
>
>     Cabal-2.0.1.1 from stack configuration does not match >=1.18 && <1.25
>  (latest matching version is 1.24.2.0)
>     base-4.10.1.0 from stack configuration does not match >=4.6.0.1 &&
> <4.10  (latest matching version is 4.9.1.0)
>     cabal-helper must match <0.8 && >=0.7.3.0, but the stack configuration
> has no specified version  (latest matching version is 0.7.3.0)
>     extra-1.6.2 from stack configuration does not match <1.6 && >=1.4
>  (latest matching version is 1.5.3)
>     ghc-8.2.2 from stack configuration does not match >=7.6 && <8.2
>     monad-journal-0.8.1 from stack configuration does not match <0.8 &&
> >=0.4  (latest matching version is 0.7.2)
>     optparse-applicative-0.14.0.0 from stack configuration does not match
> >=0.13.0.0 && <0.14  (latest matching version is 0.13.2.0)
>
> needed since ghc-mod is a build target.
>
> Can I get an advice to solve this error?
>
> Thanks And Best Regards,
> Dinesh
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20180524/80ac48b0/attachment-0001.html>

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

Message: 2
Date: Fri, 25 May 2018 12:26:47 +0100
From: mike h <mike_k_hough...@yahoo.co.uk>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: [Haskell-beginners] ghci timings
Message-ID: <2b4eccf7-53d6-49d1-ae17-6a5a388f4...@yahoo.co.uk>
Content-Type: text/plain; charset=utf-8

Hi,
I have a function that takes a while to execute and its output is a list of 
1000 numbers. I’ve setup ghci to show timings. 
So in ghci I run the function, it churns away and then starts display the 
output list and finally shows the timings.
I’m assuming that the execution time includes the time taken to output the 
result. Is it possible to get the execution time that does not include the time 
to output the result? 

Thanks

Mike







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

Message: 3
Date: Fri, 25 May 2018 12:33:32 +0100
From: mike h <mike_k_hough...@yahoo.co.uk>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] ghci timings
Message-ID: <51ac0111-d3a7-46c4-a23d-73c95fd68...@yahoo.co.uk>
Content-Type: text/plain; charset=utf-8

Sorry - I’m being stupid, 

Just use last to print the last in the list. List is still evaluated but no 
real print overhead.
duh.

Mike
> On 25 May 2018, at 12:26, mike h <mike_k_hough...@yahoo.co.uk> wrote:
> 
> Hi,
> I have a function that takes a while to execute and its output is a list of 
> 1000 numbers. I’ve setup ghci to show timings. 
> So in ghci I run the function, it churns away and then starts display the 
> output list and finally shows the timings.
> I’m assuming that the execution time includes the time taken to output the 
> result. Is it possible to get the execution time that does not include the 
> time to output the result? 
> 
> Thanks
> 
> Mike
> 
> 
> 
> 
> 



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

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

End of Beginners Digest, Vol 119, Issue 16
******************************************

Reply via email to