chshersh / iris

🌈 Haskell CLI Framework supporting Command Line Interface Guidelines
https://hackage.haskell.org/package/iris
Mozilla Public License 2.0
176 stars 21 forks source link

Configure 'stan' #64

Closed chshersh closed 1 year ago

chshersh commented 2 years ago

Stan is a Haskell static analyser. To get the most of Haskell DX, it would be nice to configure it as well.

german1608 commented 1 year ago

Hi there!

I'd like to work on this!

I built both projects (iris and stan) using GHC 8.10.7, and got the following output, using no stan config at all:

Screen Shot 2022-10-02 at 4 27 34 PM

And we already have the config starting at GHC 8.8 (I'm unfamiliar if HIE are supported since this version).

https://github.com/chshersh/iris/blob/1bede5f2c7211e633c6356f03b1dc5f201326717/iris.cabal#L42-L45

I've read about stan a while ago, but this is the first time I actually use it. We can start with an empty .stan.toml file, and add config as the project grow, or you may suggest a starting point for the config. I'm happy regardless.

chshersh commented 1 year ago

Thanks for giving it a go!

I agree that we can start with an empty .stan.toml config and add things later if needeed 🙂

The error you see is in the autogenerated by Cabal modules so we can't fix them. We can only ignore them. And this is what needs to be put in the config 🙂

However, looks like this is impossible at the moment due to the following Stan issue:

german1608 commented 1 year ago

Oh, I see, I didn't noted the file was autogenerated.

alright then, I'll take a look at this soon.

Thanks for your kind response.