Here is a sample Haskell code block:
-- This is a comment <- notice how this is syntax highlighted as though it were code
{- This is also a Haskell comment -}
// This isn't even a comment in Haskell, it's a syntax error.
# This isn't a comment either.
-- // Only this is a comment to both Haskell and SO's syntax highlighter.
-- Some actual Haskell code:
f :: a -> a
f x = x
-- Some more actual Haskell code:
f' :: (a -> a') -> [a -> a] -> a -> a'
f' f0 fs = foldl' (.) f0 fs
'
really messes the formatting: meta.stackexchange.com/q/6812/7586 . Anyway, assuming there's no AI code that can detect the language, what are you suggesting?--
is also an SQL comment, but it can be tricky separating it from the decrement operator.'
in Haskell is a character that can present in an identifier, so we can't use the "close the comment" trick in VB.lang-hs
) is now explicitly supported.lang-hs
it the same aslang-haskell
? Also,haskell
seems to produce different results thanlang-haskell
—what's with that?