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:  Error when starting GHCI (Arie van   Wingerden)
      (Arie van Wingerden)
   2.  cabal issues (emacstheviking)
   3.  Turing machine that decides if a string is an    element of
      an-bn-cn (Costello, Roger L.)
   4. Re:  daemons and signals (Bob Ippolito)


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

Message: 1
Date: Sat, 12 Oct 2013 11:50:47 +0200
From: Arie van Wingerden <[email protected]>
To: "Howard B. Golden" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [Haskell-beginners] Error when starting GHCI (Arie van
        Wingerden)
Message-ID:
        <CADkALSF9utO37ctFvb49B4tk0LR-aae1myhzx=7tefkvzik...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Howard,

thanks for your help.
I guess this is a nasty problem which may take quit some time to solve.
Since I only wish to learn a new functional language, I'll try my hands on
F# for now.
Perhaps later on this problem is solved and I will retry starting with
Haskell.
For now i wish you luck and say goodbye.


2013/10/11 Arie van Wingerden <[email protected]>

> C:\Windows\system32>cabal update
> Downloading the latest package list from hackage.haskell.org
> cabal: Failed to download
> http://hackage.haskell.org/packages/archive/00-index.tar.gz : ErrorMisc
> "Unsucessful HTTP code: 404"
>
> Which is another error; sigh...
>
> I already uninstalled 2 applications that might have interfered; but the
> problems remain.
>
>
> 2013/10/11 Howard B. Golden <[email protected]>
>
> Arie,
>>
>> Try this from the command line:
>>
>> cabal update
>> cabal install hs-dotnet
>>
>> That should install hs-dotnet. (I'm not sure that will solve your ghci
>> problem, but it's worth a try.)
>>
>> Howard
>>
>>   ------------------------------
>>  *From:* Arie van Wingerden <[email protected]>
>> *To:* Howard B. Golden <[email protected]>
>> *Cc:* "[email protected]" <[email protected]>
>> *Sent:* Friday, October 11, 2013 1:03 AM
>>
>> *Subject:* Re: [Haskell-beginners] Error when starting GHCI (Arie van
>> Wingerden)
>>
>> Hi Howard,
>>
>> maybe you are spot on!
>> I only have this: "C:\Users\Arie\AppData\Roaming\ghc" only containing
>> ghci_history !!
>> But how to repair this?
>>
>> The install gave me no errors.
>>
>> Kind regards,
>>    Arie
>>
>>
>> 2013/10/10 Howard B. Golden <[email protected]>
>>
>> Arie,
>>
>> The only difference I have with your output on my computer is a line
>> after the "Using binary package database..." line:
>>
>>     Using binary package database:
>> C:\Users\hgolden\AppData\Roaming\ghc\i386-mingw32-7.6.3\package.conf.d\package.cache
>>
>> That package cache contains hs-dotnet-0.4.0.
>>
>> I have no idea if this is why you are getting the error message at the
>> end ("Loading package base ... ").
>>
>> Did you get any error messages when you installed the Haskell Platform?
>>
>> Howard
>>
>>   ------------------------------
>>  *From:* Arie van Wingerden <[email protected]>
>> *To:* Howard B. Golden <[email protected]>; The
>> Haskell-Beginners Mailing List - Discussion of primarily beginner-level
>> topics related to Haskell <[email protected]>
>> *Sent:* Wednesday, October 9, 2013 11:41 AM
>> *Subject:* Re: [Haskell-beginners] Error when starting GHCI (Arie van
>> Wingerden)
>>
>> Hi,
>> following Howards guidance I tried to start GHCI with the -v option and
>> get:
>>
>> GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
>> Glasgow Haskell Compiler, Version 7.6.3, stage 2 booted by GHC version
>> 7.4.1
>> Using binary package database: C:\Program Files\Haskell
>> Platform\2013.2.0.0\lib\
>> package.conf.d\package.cache
>> wired-in package ghc-prim mapped to
>> ghc-prim-0.3.0.0-9d603ae4e062e1401099a3daa89
>> 31d0f
>> wired-in package integer-gmp mapped to
>> integer-gmp-0.5.0.0-4093e6ff1e8ebdba04ec8
>> 92df9ac108f
>> wired-in package base mapped to
>> base-4.6.0.1-f0c2cc6dcf0e12bf75312a2e7f354095
>> wired-in package rts mapped to builtin_rts
>> wired-in package template-haskell mapped to
>> template-haskell-2.8.0.0-42f1e6e5551
>> 1ef4dff7e4249580faf8f
>> wired-in package dph-seq not found.
>> wired-in package dph-par not found.
>> Hsc static flags: -static
>> Loading package ghc-prim ... linking ... done.
>> Loading package integer-gmp ... linking ... done.
>> *** gcc:
>> "C:\Program Files\Haskell Platform\2013.2.0.0\lib/../mingw/bin/gcc.exe"
>> "-fno-st
>> ack-protector" "-Wl,--hash-size=31" "-Wl,--reduce-memory-overheads"
>> "-LC:\Progra
>> m Files\Haskell Platform\2013.2.0.0\lib\base-4.6.0.1" "--print-file-name"
>> "wsock
>> 32.dll"
>> *** gcc:
>> "C:\Program Files\Haskell Platform\2013.2.0.0\lib/../mingw/bin/gcc.exe"
>> "-fno-st
>> ack-protector" "-Wl,--hash-size=31" "-Wl,--reduce-memory-overheads"
>> "-LC:\Progra
>> m Files\Haskell Platform\2013.2.0.0\lib\base-4.6.0.1" "--print-file-name"
>> "user3
>> 2.dll"
>> *** gcc:
>> "C:\Program Files\Haskell Platform\2013.2.0.0\lib/../mingw/bin/gcc.exe"
>> "-fno-st
>> ack-protector" "-Wl,--hash-size=31" "-Wl,--reduce-memory-overheads"
>> "-LC:\Progra
>> m Files\Haskell Platform\2013.2.0.0\lib\base-4.6.0.1" "--print-file-name"
>> "shell
>> 32.dll"
>> Loading package base ... ghc.exe: : Kan opgegeven module niet vinden.
>> *** Deleting temp files:
>> Deleting:
>> *** Deleting temp dirs:
>> Deleting:
>> <command line>: can't load .so/.DLL for:  (addDLL: could not load DLL)
>>
>> Any ideas why this happens?
>> TIA,
>>    Arie
>>
>>
>> 2013/10/8 Howard B. Golden <[email protected]>
>>
>> Hi Arie,
>>
>> My guess is that you don't have a necessary library in your path. Here
>> are the Haskell libraries I have in my path (change as necessary for your
>> setup):
>>
>> C:\Program Files\Haskell Platform\2013.2.0.0\lib\extralibs\bin
>> C:\Program Files\Haskell Platform\2013.2.0.0\bin
>> C:\Program Files\Haskell Platform\2013.2.0.0\mingw\bin
>>
>> HTH,
>>
>> Howard
>>
>> -------------------------
>> Message: 2
>>
>> Date: Tue, 8 Oct 2013 18:12:41 +0200
>> From: Arie van Wingerden <[email protected]>
>> To: [email protected]
>> Subject: [Haskell-beginners] Error when starting GHCI
>> Message-ID:
>>     <CADkALSHpG7s89tT7rXJw56q7hkDyEcwv1=xu5tg3_qlqoqt...@mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi,
>>
>> today I downloaded the Haskell platform for 32 bits Windows
>> (HaskellPlatform-2013.2.0.0-setup.exe) and installed it.
>>
>> The first time I started GHCI all worked perfectly.
>>
>> When I closed GHCI and later tried to start it again I constantly get
>> however:
>> C:\Users\Arie>ghci
>> GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
>> Loading package ghc-prim ... linking ... done.
>> Loading package integer-gmp ... linking ... done.
>> Loading package base ... ghc.exe: : Kan opgegeven module niet vinden.
>> <command line>: can't load .so/.DLL for:  (addDLL: could not load DLL)
>> WHERE Kan opgegeven module niet vinden MEANS Can't find the specified
>> module
>>
>> Any ideas?
>>
>> Kind regards,
>>    Arie
>> _______________________________________________
>> 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/20131012/b3f3538f/attachment-0001.html>

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

Message: 2
Date: Sat, 12 Oct 2013 20:47:54 +0100
From: emacstheviking <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] cabal issues
Message-ID:
        <CAEiEuUKsawnsGV4_P1C63SBOVfDeFEz5TC=rndzkon26ggp...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Fresh install via homebrew on osx, brew doctor reports no problems.

After installing ghc and cabal-install I then tried a cabal update and it
failed because of permissions issues in the ~/.cabal folder

I fixed that as stated on the brew site and tried again, no joy...

Last 10 lines of the build log (
/Users/seancharles/.cabal/logs/OpenGLRaw-1.4.0.0.log ):
cabal: /Users/seancharles/.cabal/logs/OpenGLRaw-1.4.0.0.log: permission
denied

I also did a Verify and Repair from Disk Utilities just in case, that fixed
some things but no this.

Have I done something wrong or is there an issue with cabal because every
time I do a cabal update it seems to me the problem keeps coming back?!?!
This is very frustrating because I initially installed the latest Haskell
Platform for OSX .pkg file and had exactly the same problems.

Sometimes I despair at how hard it seems to get a working Haskell
installation...I never have these problems on Linux, only OSX and I don't
know why!

Thanks in advance.
Sean.

Some information (I did notice that seancharles:staff and seancharles:admin
are in existence) that may help. I have no idea about :staff and :admin,
not seen that before!


all of the log file:
Installing library in
/Users/seancharles/.cabal/lib/x86_64-osx-ghc-7.6.3/OpenGLRaw-1.4.0.0
setup-Cabal-1.16.0-x86_64-osx-ghc-7.6.3: dist/build/HSOpenGLRaw-1.4.0.0.o:
permission denied

ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3

Seans-iMac:~ seancharles$ cabal --version
cabal-install version 1.18.0.2
using version 1.18.1 of the Cabal library

Folder permissions:

drwxr-xr-x    9 seancharles  staff      306 12 Oct 20:37 .cabal

brew folder:

drwxr-xr-x    6 seancharles  admin    204 12 Oct 20:34 Cellar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20131012/65c17a41/attachment-0001.html>

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

Message: 3
Date: Sat, 12 Oct 2013 19:55:41 +0000
From: "Costello, Roger L." <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] Turing machine that decides if a string
        is an   element of an-bn-cn
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Hi Folks,

I implemented, in Haskell, a Turing Machine that decides if a string is a 
member of the language consisting of an equal number of a's, b's, and c's, 
i.e., anbncn.

http://www.xfront.com/Turing-Machines/an-bn-cn/TM.hs.txt

/Roger


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

Message: 4
Date: Sun, 13 Oct 2013 01:39:44 -0700
From: Bob Ippolito <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] daemons and signals
Message-ID:
        <CACwMPm9E2O+eGCiDcbJoKBCyo6ND7CaAvATSgCXf7nug6G=e...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I don't have the daemonization or syslog stuff installed, but this works
for me:
https://gist.github.com/etrepum/6959892


On Tue, Oct 8, 2013 at 6:50 PM, Jeff Lasslett <[email protected]>wrote:

> Hello,
>
> I'm trying to write a daemon that handles some signals.  My problem is
> currently with the handling of posix signals.  I don't think my signal
> handlers are being run.  All they do at present is write to syslog and a
> file (for diagnostic purposes).
>
> I'm not seeing anything in /var/log/system.log  (I'm on a mac).
>
> My code is attached.  Any advice would be greatly appreciated.
>
> Thanks,
> Jeff
>
>
>
> _______________________________________________
> 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/20131013/05ad4753/attachment.html>

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

Subject: Digest Footer

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


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

End of Beginners Digest, Vol 64, Issue 21
*****************************************

Reply via email to