Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot compile as a dependency #76

@gabrielelana

Description

@gabrielelana

I'm trilled to try this library in one of my projects but unfortunately it fails
to build if added as a dependency

If I clone the repository locally I'm able to build it

If I add it as a dependency...

[11 of 24] Compiling QuickSpec.Internal.Pruning.UntypedTwee ( src/QuickSpec/Internal/Pruning/UntypedTwee.hs, dist/build/QuickSpec/Internal/Pruning/UntypedTwee.o, dist/build/QuickSpec/Internal/Pruning/UntypedTwee.dyn_o )
src/QuickSpec/Internal/Pruning/UntypedTwee.hs:87:7: error: [GHC-39999]
    • Could not deduce ‘PrettyTerm fun’
        arising from a use of ‘defaultConfig’
      from the context: (Typeable fun, Ord fun, Sized fun, Monad m)
        bound by the type signature for:
                   run :: forall fun (m :: * -> *) a.
                          (Typeable fun, Ord fun, Sized fun, Monad m) =>
                          Config -> Pruner fun m a -> m a
        at src/QuickSpec/Internal/Pruning/UntypedTwee.hs:82:1-85
      Possible fix:
        add (PrettyTerm fun) to the context of
          the type signature for:
            run :: forall fun (m :: * -> *) a.
                   (Typeable fun, Ord fun, Sized fun, Monad m) =>
                   Config -> Pruner fun m a -> m a
    • In the expression: defaultConfig
      In a record update at fields ‘Twee.cfg_accept_term’,
                                   ‘Twee.cfg_max_cp_depth’,
      with type constructor ‘Twee.Config’
      and data constructor ‘Twee.Config’.
      In the expression:
        defaultConfig
          {Twee.cfg_accept_term = Just (\ t -> size t <= cfg_max_term_size),
           Twee.cfg_max_cp_depth = cfg_max_cp_depth}
   |
87 |       defaultConfig {
   |       ^^^^^^^^^^^^^

I will add the cabal build log at the maximum level of verbosity (with the environment variables reducted)

How can I fix this?

build.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions