Can I write components in Haskell for use on the Django site?

I have an idea for a web service, but I am very new to web programming. Django looks great and somehow I can quickly pick it up. I have a lot of experience in Haskell (and very little in python), and I would like to start writing some of the non-web stuff backends in my favorite language. But of course, I don’t want to do this if the haskell code will not be used, if I go with django.

I looked at several haskell web frameworks: hApps looks too complex and undocumented, turbinado looks affordable, but undocumented, etc. And I think that using a widely used infrastructure like django and having access to a lot of code that I can just connect will help me a lot. But I'm very open to learning about other ideas for using frameworks or about other options that I should use Haskell in some way.

+5
source share
5 answers

It depends on what you mean by β€œweb service”.

-/-, , HTML, HTTP, . -.

Haskell "" -. ( , , , , , ..).

- "webby", . , , - Hack Network.CGI, HTTP-, , CGI/FastCGI. -, - Django .

Haskell, Django. Python ↔ Haskell interop /.

+4

-, cgi fastcgi- Haskell -.

+3

python, , . .

Django.

+1

F # NDjango - Django, F #. : NDjango - www.ndjango.com

+1

If you want Haskell to access the database directly, you will need to modify the migration of the Django script database to also fix the Haskell model code using a library such as Yesod Persistent.

0
source

All Articles