You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
....
#include "vector.h"
....
-- | Attach a 'Size' hint to a 'Stream'
sized :: Stream m a -> Size -> Stream m a
{-# INLINE_STREAM sized #-}
sized (Stream step s _) sz = Stream step s sz
....
But cpphs ignores haskell comments when expanding macros.
From input.txt
Could be a feature rather than a bug. :-) You can try flipping the option to lex input as Haskell, and lex it as plaintext instead. defaultCpphsOptions{ boolopts = defaultBoolOptions { lang=False }}
Thank you this indeed solved my problem. I can now parse the vector package. Although this required an unrelated workaround. Should I submit a pull request to change the default behavior in hse-cpp? What would be the impact on the other packages?
The vector package makes use of cpp to abstract over inlining phases.
From "vector.h"
From "Data/Vector/Fusion/Stream/Monadic.hs"
But cpphs ignores haskell comments when expanding macros.
From input.txt
But
The text was updated successfully, but these errors were encountered: