Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to deal with internal libraries with stack snapshot #1764

Open
facundominguez opened this issue Jun 20, 2022 · 1 comment
Open

Comments

@facundominguez
Copy link
Member

facundominguez commented Jun 20, 2022

The latest versions of attoparsec use an internal library, and when using the newest stackage snapshots, one needs to do extra configuration in the stack_snapshot rule.

    components =
        { "attoparsec": [
                "lib",
                "lib:attoparsec-internal",
            ],
        },
    components_dependencies =
        {
            "attoparsec": """{"lib:attoparsec": ["lib:attoparsec-internal"]}""",
        },

Ideally, this extra bit of configuration would be discussed in the top-level docstring for stack_snapshot and it would be mentioned in the user guide.

Probably the documentation could also link at why this extra bit of configuration is necessary: commercialhaskell/stack#5275

@jonathanlking
Copy link

In case it helps anyone searching, similarly for pandoc 3 the following is required:

components = {                                        
    "pandoc": [                                       
        "lib",                                        
        "lib:xml-light",                              
    ],                                                
},                                                    
components_dependencies = {                           
    "pandoc": """{"lib:pandoc": ["lib:xml-light"]}""",
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants