[m-users.] C include dir
Volker Wysk
post at volker-wysk.de
Thu Apr 22 00:41:30 AEST 2021
Am Mittwoch, den 21.04.2021, 15:24 +0100 schrieb Sean Charles
(emacstheviking):
> Sometimes Haskell dies in a sea of camel cased nonsense, at least for me.
> Some Haskell code is so tight with monads and $, >>=, arrows, that it
> looks like somebody stuck a kilo of C4 into a PDF file.
I think, do-notation is very readable and elegant. Your'e not using monads
without the syntactic sugar, are you..?
I don't like CamelCase either.
> As much as Mercury feels long winded and verbose, it’s imminently readable
> and utterly clear in what it says it thinks you are telling it you want it
> to do, and it catches your foul ups and if Haskell had ‘-E’ it would be a
> better world.
I find Haskell more readable.
Cheers,
Volker
>
> Long live hackery!
>
>
> > On 21 Apr 2021, at 15:21, Volker Wysk <post at volker-wysk.de> wrote:
> >
> > Am Mittwoch, den 21.04.2021, 10:19 +0100 schrieb Sean Charles
> > (emacstheviking):
> > > Excellent fix, I will use that myself as I plan to dive into SDL2 and Cairo at some point, plus the help I received from Julien F. About how to use libraries from the examples means things are looking interesting indeed.
> > >
> > > I blogged once that my perfect language would be a cross between Haskell and Prolog… imagine then finding Mercury!
> >
> > Exactly! :-)
> >
> > The only thing is, I like Haskell syntax better. It's very elegant.
> >
> > Bye
> > Volker
> >
> >
> > > :)
> > >
> > > Sean
> > >
> > > > On 21 Apr 2021, at 10:17, Volker Wysk <post at volker-wysk.de> wrote:
> > > >
> > > > Am Mittwoch, den 21.04.2021, 10:08 +0100 schrieb Sean Charles
> > > > (emacstheviking):
> > > > > Hi Volker,
> > > > >
> > > > > I saw that option the other day, if you do `man mmc` and search for -I…
> > > > >
> > > > > -I <dir>, --search-directory <dir>
> > > > > Append <dir> to the list of directories to be searched for imported modules.
> > > > >
> > > > > So it does have -I but it just doesn’t do what you thought and hence the need for —c-include-dir I guess.
> > > >
> > > > You're right, "-I" is already in use.
> > > >
> > > > However, one can make do like this:
> > > >
> > > > INC=`pkg-config --cflags glib-2.0 | sed 's/-I/--c-include-dir /g'`
> > > >
> > > >
> > > > Bye,
> > > > Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20210421/16417270/attachment.sig>
More information about the users
mailing list