Re: Imports as first class functions

Brandon Allbery <[email protected]>
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <CAKFCL4UKSrs5wzyGLGAzuqmxLQxZ1bkjrtv4h04pmJhjC93QpA@mail.gmail.com>
On Wed, Dec 4, 2024 at 9:31 AM julian getcontented.com.au <
[email protected]> wrote:

> One of the things a little strange about the programming industry is how
> quick we are to invent entirely new languages rather than attempt to modify
> existing ones and beat them into a new more flexible shape so we can
> shoehorn our new requirements into a more flexible frame. I realise it’s
> not always possible, but surely if we all got together and worked on it we
> could do it?
>

Generally at the price of breaking backward compatibility, which is already
a major issue with GHC and would get much worse here.


> It would be *glorious* if stack (or cabal, or whatever package manager we
> use) itself were programmable in the sense that it could be called from
> within Haskell itself using a typed API and data could drive its included
> packages, and its type could be a function whose range was IO ByteString,
> providing the compiled binary.
>

The Cabal library is already largely programmable in this sense, although
as it drives system tools you have the problem that inputs and outputs are
disk files coming from or going to those tools. Changing this requires
changing the system tools, or reimplementing them which would be
prohibitively difficult and subject to regular breakage.

-- 
brandon s allbery kf8nh
[email protected]

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.