If in Haskell I have for example:
myFunc :: [a] -> Int
myFunc = length
main = do
print $ length "foo"
It seems like you could easy express this in "somelisp" with: (myFunc :: [] a -> Int)
(myfunc = length)
(main = do
print (length "foo"))
And since you're using lisp-like syntax, you have the possibility to use macros now!Now, I don't know if it would simply be simpler to encode these macros in your "somelisp" language defined using Racket, if you should make a Haskell extension, or if you should just not use it at all?
What about having macros defined in specific files, and use the target language, say Haskell in your code, but whenever you want to use a macro, use a syntax that Haskell does not accept: $(mymacro print $ length "foo") and have a preprocessor convert this macro to its corresponding haskell code?
I am currently learning Haskell, so I don't know if there are more complex examples where this will not work.