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: auto set objects imported (Brandon Allbery)
2. Re: auto set objects imported (Nathan H?sken)
3. ghci and module with FFI code (Nathan H?sken)
4. Re: ghci and module with FFI code (Brandon Allbery)
----------------------------------------------------------------------
Message: 1
Date: Fri, 4 Oct 2013 09:16:11 -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] auto set objects imported
Message-ID:
<cakfcl4vferlesk+ikls3587gn0uxhtqvl-q_yvamtn61_2c...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Oct 4, 2013 at 6:53 AM, Nathan H?sken <[email protected]>wrote:
> It seems to be good practice, to explicitly say, which objects one wants
> to import in an import statement:
>
> import SomeModule (someFunc)
>
> while this is good documentation, it can be cumbersome to maintain.
> So I was wondering: Is there some tool, that automaticly finds out which
> functions I use from which module and modifies my import statements?
> That would be most usefull!
>
http://hackage.haskell.org/package/fix-imports ?
--
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://www.haskell.org/pipermail/beginners/attachments/20131004/53df136d/attachment-0001.html>
------------------------------
Message: 2
Date: Fri, 04 Oct 2013 15:38:36 +0200
From: Nathan H?sken <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] auto set objects imported
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 10/04/2013 03:16 PM, Brandon Allbery wrote:
> On Fri, Oct 4, 2013 at 6:53 AM, Nathan H?sken <[email protected]
> <mailto:[email protected]>> wrote:
>
> It seems to be good practice, to explicitly say, which objects one
> wants to import in an import statement:
>
> import SomeModule (someFunc)
>
> while this is good documentation, it can be cumbersome to maintain.
> So I was wondering: Is there some tool, that automaticly finds out
> which functions I use from which module and modifies my import
> statements?
> That would be most usefull!
>
>
> http://hackage.haskell.org/package/fix-imports ?
Not exactly what I was looking for, but also most helpfull!
>
> --
> brandon s allbery kf8nh sine nomine associates
> [email protected] <mailto:[email protected]> [email protected]
> <mailto:[email protected]>
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
------------------------------
Message: 3
Date: Fri, 04 Oct 2013 16:04:06 +0200
From: Nathan H?sken <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] ghci and module with FFI code
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hey,
I wrote a little package which gives bindings to a C++ library (to the
random forest from vigra).
Works fine! But when I try to load a module using it in ghci, and run an
function (which is unrelated to the FFI bindings) I get:
/lib/hsVigraRF-0.1.0.0/ghc-7.6.2/HShsVigraRF-0.1.0.0.o: unknown symbol
`_ZGVZN5vigra10rf_defaultEvE6result'
_ZGVZN5vigra10rf_defaultEvE6result is a symbol from vigra.
So why do I get this in ghci and not when compiling/running? What can I
do about this?
Thanks!
Nathan
------------------------------
Message: 4
Date: Fri, 4 Oct 2013 11:22:37 -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] ghci and module with FFI code
Message-ID:
<CAKFCL4UvadpeMGqskZwULXNE0y+eY=_g2gq3d5ulqh6hmua...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Oct 4, 2013 at 10:04 AM, Nathan H?sken <[email protected]>wrote:
> Works fine! But when I try to load a module using it in ghci, and run an
> function (which is unrelated to the FFI bindings) I get:
>
> /lib/hsVigraRF-0.1.0.0/ghc-7.**6.2/HShsVigraRF-0.1.0.0.o: unknown symbol
> `_ZGVZN5vigra10rf_**defaultEvE6result'
>
> _ZGVZN5vigra10rf_**defaultEvE6result is a symbol from vigra.
> So why do I get this in ghci and not when compiling/running? What can I do
> about this?
>
Becaue ghci's symbol resolution is an ugly hack in released versions of
ghc. The next ghc release redoes ghci to use the system linker instead of a
built-in hack, and fixes many of these issues; you can wait for its release
or build ghc HEAD.
--
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://www.haskell.org/pipermail/beginners/attachments/20131004/94aadae1/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 64, Issue 9
****************************************