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: can't make distribution, requires rerunning ./configure
(Josh Stratton)
2. Re: EmptyDataDecls (Kim-Ee Yeoh)
3. Re: EmptyDataDecls (Philippe Sismondi)
4. Re: can't make distribution, requires rerunning ./configure
(Hollister Herhold)
----------------------------------------------------------------------
Message: 1
Date: Wed, 3 Apr 2013 09:30:55 -0700
From: Josh Stratton <[email protected]>
Subject: Re: [Haskell-beginners] can't make distribution, requires
rerunning ./configure
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAPVmgLisArZ=cwgvcu9vc+4_udp3mgi5g0usnhnxg6pne2x...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Redhat Enterprise 6.
On Wed, Apr 3, 2013 at 9:26 AM, Hollister Herhold <[email protected]>wrote:
>
> What distro are you running?
>
>
> On Apr 2, 2013, at 11:16 AM, Josh Stratton wrote:
>
> Downloading the platform, it says it needs to have ghc already installed.
> Am I really the only one hitting this issue?
>
> It's erroring out here...
>
> ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
> include mk/config.mk
> ifeq "$(ProjectVersion)" ""
> $(error Please run ./configure first)
> endif
> endif
>
> But I don't where this ProjectVersion is being set...
>
> > grep ProjectVersion *
> ghc.mk:ifeq "$(ProjectVersion)" ""
> ghc.mk:SRC_DIST_BASE_NAME = ghc-$(ProjectVersion)
> ghc.mk:SRC_DIST_GHC_NAME = ghc-$(ProjectVersion)-src
> ghc.mk:SRC_DIST_TESTSUITE_NAME = ghc-$(ProjectVersion)-testsuite
> ghc.mk: echo $(ProjectVersion) >VERSION
> ghc.mk: tar tjf $(SRC_DIST_GHC_TARBALL) | sed
> "s|^ghc-$(ProjectVersion)/||" | sort >sdist-manifest
> ghc.mk:SRC_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
> Makefile:ifeq "$(ProjectVersion)" ""
>
>
>
> On Fri, Mar 29, 2013 at 5:38 AM, Hollister Herhold <[email protected]>wrote:
>
>>
>> (Coming from a Haskell newbie who has both used the Haskell Platform and
>> built ghc from scratch-)
>>
>> You want the Haskell Platform. It comes with a bunch of useful libraries
>> in addition to ghc. If you're a beginner, it will do everything you need
>> for quite a while.
>>
>> Once you get used to using ghc and cabal and such, you can "upgrade" to
>> the latest ghc (or the development head, if you're a bleeding-edge kind of
>> person).
>>
>>
>>
>> On Mar 29, 2013, at 7:31 AM, Josh Stratton wrote:
>>
>> Maybe I'm confused, but I did download the binary package. That's the
>> one I can't install. I downloaded the binary package and followed the
>> steps in the INSTALL file which included running the configure step (with
>> an optional prefix) and "make install". I don't think it's actually
>> building ghc. I can try the haskell platform to see what happens.
>>
>>
>> On Fri, Mar 29, 2013 at 12:05 AM, Karl Voelker <[email protected]>wrote:
>>
>>> This isn't exactly an answer to your question, but have you considered
>>> using the Haskell Platform (which is recommended for most purposes) or a
>>> GHC binary package?
>>>
>>> http://www.haskell.org/platform/
>>> http://www.haskell.org/ghc/download_ghc_7_6_2#binaries
>>>
>>> -Karl
>>>
>>>
>>> On Thu, Mar 28, 2013 at 9:37 AM, Josh Stratton <[email protected]
>>> > wrote:
>>>
>>>> I recently downloaded the ghc distribution for Linux (x86_64) and had
>>>> difficulty installing to my machine. The configure step seems to have
>>>> completed successfully, but when I run the followup "make install", it
>>>> fails suggesting that I haven't run the configure command yet.
>>>>
>>>> atlas => ./configure --prefix=/opt/ghc
>>>> checking for path to top of build tree... /tmp/ghc-7.6.2
>>>> Build platform inferred as: x86_64-unknown-linux
>>>> Host platform inferred as: x86_64-unknown-linux
>>>> Target platform inferred as: x86_64-unknown-linux
>>>> GHC build : x86_64-unknown-linux
>>>> GHC host : x86_64-unknown-linux
>>>> GHC target : x86_64-unknown-linux
>>>> checking for perl... /rel/map/generic-2012.18.last/bin/perl
>>>> checking if your perl works in shell scripts... yes
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether ln -s works... yes
>>>> checking for gsed... sed
>>>> checking for gcc... /usr/bin/gcc
>>>> checking for gcc... /usr/bin/gcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... no
>>>> checking for suffix of object files... o
>>>> checking whether we are using the GNU C compiler... yes
>>>> checking whether /usr/bin/gcc accepts -g... yes
>>>> checking for /usr/bin/gcc option to accept ISO C89... none needed
>>>> checking version of gcc... 4.4.6
>>>> checking how to run the C preprocessor... /usr/bin/gcc -E
>>>> checking whether ld understands --hash-size=31...
>>>> checking whether ld understands --reduce-memory-overheads...
>>>> checking for extra options to pass gcc when compiling via C... -fwrapv
>>>> checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and
>>>> CPPFLAGS... done
>>>> checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0,
>>>> CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done
>>>> checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1,
>>>> CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done
>>>> checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2,
>>>> CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done
>>>> checking for .subsections_via_symbols... no
>>>> checking whether your assembler supports .ident directive... yes
>>>> checking for GNU non-executable stack support... yes
>>>> checking for grep that handles long lines and -e... /bin/grep
>>>> checking for egrep... /bin/grep -E
>>>> checking for ANSI C header files... yes
>>>> checking for sys/types.h... yes
>>>> checking for sys/stat.h... yes
>>>> checking for stdlib.h... yes
>>>> checking for string.h... yes
>>>> checking for memory.h... yes
>>>> checking for strings.h... yes
>>>> checking for inttypes.h... yes
>>>> checking for stdint.h... yes
>>>> checking for unistd.h... yes
>>>> checking size of void *... 8
>>>> checking for ar... /usr/bin/ar
>>>> checking whether /usr/bin/ar is GNU ar... yes
>>>> checking for ar arguments... q
>>>> checking whether ranlib is needed... no
>>>> configure: creating ./config.status
>>>> config.status: creating settings
>>>> config.status: creating mk/config.mk
>>>> config.status: creating mk/install.mk
>>>> ****************************************************
>>>> Configuration done, ready to 'make install'
>>>> (see README and INSTALL files for more info.)
>>>> ****************************************************
>>>>
>>>> atlas =>
>>>> make install
>>>> make -r --no-print-directory -f ghc.mk install BINDIST=YES
>>>> NO_INCLUDE_DEPS=YES
>>>> ghc.mk:122: *** Please run ./configure first. Stop.
>>>> make: *** [install] Error 2
>>>>
>>>>
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> [email protected]
>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130403/5ef83067/attachment-0001.htm>
------------------------------
Message: 2
Date: Wed, 3 Apr 2013 23:35:48 +0700
From: Kim-Ee Yeoh <[email protected]>
Subject: Re: [Haskell-beginners] EmptyDataDecls
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<capy+zdrku8y9xhcnvw_hq4khwec4bkgpq8maj2kqhf-yy9f...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On Wed, Apr 3, 2013 at 9:01 PM, Philippe Sismondi <[email protected]> wrote:
> Googling does not seem to turn up much either, although I may not have tried
> hard enough.
If you google "phantom types" instead of "empty data declarations" you
should get more hits. Hinze wrote a piece called "Fun with Phantom
Types" that's pitched at an intro level.
-- Kim-Ee
------------------------------
Message: 3
Date: Wed, 3 Apr 2013 16:23:38 -0400
From: Philippe Sismondi <[email protected]>
Subject: Re: [Haskell-beginners] EmptyDataDecls
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Ok, thanks for the replies you guys. They give me some places to start. I
clearly also need to pick up my study of types again.
- P -
On 2013-04-03, at 10:01 AM, Philippe Sismondi wrote:
> Can anyone point me in the direction of some explanatory material on the
> motivation behind empty data declarations? I have read the GHC manual on
> this, but am none the wiser for it. Googling does not seem to turn up much
> either, although I may not have tried hard enough.
>
> When and why might this language extension be useful?
>
> - P -
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
------------------------------
Message: 4
Date: Wed, 3 Apr 2013 16:13:36 -0500
From: Hollister Herhold <[email protected]>
Subject: Re: [Haskell-beginners] can't make distribution, requires
rerunning ./configure
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Sorry if this is a dumb question - did you try the rpm from rpmfind?
On Apr 3, 2013, at 11:30 AM, Josh Stratton wrote:
> Redhat Enterprise 6.
>
>
> On Wed, Apr 3, 2013 at 9:26 AM, Hollister Herhold <[email protected]> wrote:
>
> What distro are you running?
>
>
> On Apr 2, 2013, at 11:16 AM, Josh Stratton wrote:
>
>> Downloading the platform, it says it needs to have ghc already installed.
>> Am I really the only one hitting this issue?
>>
>> It's erroring out here...
>>
>> ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
>> include mk/config.mk
>> ifeq "$(ProjectVersion)" ""
>> $(error Please run ./configure first)
>> endif
>> endif
>>
>> But I don't where this ProjectVersion is being set...
>>
>> > grep ProjectVersion *
>> ghc.mk:ifeq "$(ProjectVersion)" ""
>> ghc.mk:SRC_DIST_BASE_NAME = ghc-$(ProjectVersion)
>> ghc.mk:SRC_DIST_GHC_NAME = ghc-$(ProjectVersion)-src
>> ghc.mk:SRC_DIST_TESTSUITE_NAME = ghc-$(ProjectVersion)-testsuite
>> ghc.mk: echo $(ProjectVersion) >VERSION
>> ghc.mk: tar tjf $(SRC_DIST_GHC_TARBALL) | sed
>> "s|^ghc-$(ProjectVersion)/||" | sort >sdist-manifest
>> ghc.mk:SRC_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
>> Makefile:ifeq "$(ProjectVersion)" ""
>>
>>
>>
>> On Fri, Mar 29, 2013 at 5:38 AM, Hollister Herhold <[email protected]>
>> wrote:
>>
>> (Coming from a Haskell newbie who has both used the Haskell Platform and
>> built ghc from scratch-)
>>
>> You want the Haskell Platform. It comes with a bunch of useful libraries in
>> addition to ghc. If you're a beginner, it will do everything you need for
>> quite a while.
>>
>> Once you get used to using ghc and cabal and such, you can "upgrade" to the
>> latest ghc (or the development head, if you're a bleeding-edge kind of
>> person).
>>
>>
>>
>> On Mar 29, 2013, at 7:31 AM, Josh Stratton wrote:
>>
>>> Maybe I'm confused, but I did download the binary package. That's the one
>>> I can't install. I downloaded the binary package and followed the steps in
>>> the INSTALL file which included running the configure step (with an
>>> optional prefix) and "make install". I don't think it's actually building
>>> ghc. I can try the haskell platform to see what happens.
>>>
>>>
>>> On Fri, Mar 29, 2013 at 12:05 AM, Karl Voelker <[email protected]> wrote:
>>> This isn't exactly an answer to your question, but have you considered
>>> using the Haskell Platform (which is recommended for most purposes) or a
>>> GHC binary package?
>>>
>>> http://www.haskell.org/platform/
>>> http://www.haskell.org/ghc/download_ghc_7_6_2#binaries
>>>
>>> -Karl
>>>
>>>
>>> On Thu, Mar 28, 2013 at 9:37 AM, Josh Stratton <[email protected]>
>>> wrote:
>>> I recently downloaded the ghc distribution for Linux (x86_64) and had
>>> difficulty installing to my machine. The configure step seems to have
>>> completed successfully, but when I run the followup "make install", it
>>> fails suggesting that I haven't run the configure command yet.
>>>
>>> atlas => ./configure --prefix=/opt/ghc
>>> checking for path to top of build tree... /tmp/ghc-7.6.2
>>> Build platform inferred as: x86_64-unknown-linux
>>> Host platform inferred as: x86_64-unknown-linux
>>> Target platform inferred as: x86_64-unknown-linux
>>> GHC build : x86_64-unknown-linux
>>> GHC host : x86_64-unknown-linux
>>> GHC target : x86_64-unknown-linux
>>> checking for perl... /rel/map/generic-2012.18.last/bin/perl
>>> checking if your perl works in shell scripts... yes
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether ln -s works... yes
>>> checking for gsed... sed
>>> checking for gcc... /usr/bin/gcc
>>> checking for gcc... /usr/bin/gcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether /usr/bin/gcc accepts -g... yes
>>> checking for /usr/bin/gcc option to accept ISO C89... none needed
>>> checking version of gcc... 4.4.6
>>> checking how to run the C preprocessor... /usr/bin/gcc -E
>>> checking whether ld understands --hash-size=31...
>>> checking whether ld understands --reduce-memory-overheads...
>>> checking for extra options to pass gcc when compiling via C... -fwrapv
>>> checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS...
>>> done
>>> checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0,
>>> CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done
>>> checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1,
>>> CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done
>>> checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2,
>>> CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done
>>> checking for .subsections_via_symbols... no
>>> checking whether your assembler supports .ident directive... yes
>>> checking for GNU non-executable stack support... yes
>>> checking for grep that handles long lines and -e... /bin/grep
>>> checking for egrep... /bin/grep -E
>>> checking for ANSI C header files... yes
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking size of void *... 8
>>> checking for ar... /usr/bin/ar
>>> checking whether /usr/bin/ar is GNU ar... yes
>>> checking for ar arguments... q
>>> checking whether ranlib is needed... no
>>> configure: creating ./config.status
>>> config.status: creating settings
>>> config.status: creating mk/config.mk
>>> config.status: creating mk/install.mk
>>> ****************************************************
>>> Configuration done, ready to 'make install'
>>> (see README and INSTALL files for more info.)
>>> ****************************************************
>>>
>>> atlas => make
>>> install
>>> make -r --no-print-directory -f ghc.mk install BINDIST=YES
>>> NO_INCLUDE_DEPS=YES
>>> ghc.mk:122: *** Please run ./configure first. Stop.
>>> make: *** [install] Error 2
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130403/5b201381/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 58, Issue 10
*****************************************