Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:26:57+00:00 2026-06-09T18:26:57+00:00

The source for the State transformer in mtl states: — ————————————————————————— — Instances for

  • 0

The source for the State transformer in mtl states:

-- ---------------------------------------------------------------------------
-- Instances for other mtl transformers
--
-- All of these instances need UndecidableInstances,
-- because they do not satisfy the coverage condition.

What is the “coverage condition”? All I can tell is that it has something to do with MTPCs and fundeps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:26:58+00:00Added an answer on June 9, 2026 at 6:26 pm

    Section 7.6.3.2 of the GHC manual tells us what the coverage condition is:

    The Coverage Condition. For each functional dependency, tvsleft -> tvsright, of the class, every type variable in S(tvsright) must appear in S(tvsleft), where S is the substitution mapping each type variable in the class declaration to the corresponding type in the instance declaration.

    In plain English, this means that if you have a type class with fundeps, for example:

    class Convert a b | a -> b where
      convert :: a -> b
    

    you can define the following instances:

    instance Convert String String   -- no type variables
    instance Convert [a]    [a]      -- type var a present on both sides
    instance Convert (a,b)  a        -- a on the right => a on the left
    

    but not the following instances:

    instance Convert String a        -- a only present on the right
    instance Convert a      (a,b)    -- b only present on the right
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to tag the current state of my source tree in svn. My
I need a free(open-source) solution that given the lat/lng can return the closet city/state
My source files are in this folder: c:\data\mycompany. All of my source files contain
Source: listener = new PhoneStateListener() { @Override public void onCallStateChanged(int state, String incomingNumber) {
What is the current state of Java's transition to an open source license (which
Was browsing the jQuery source code when I met this line: jQuery(this)[ state ?
Why are flat text files the state of the art for representing source code?
I've been trying to find a definitive modern source for the state of the
Here is the source code: When the element is highlighted, it adds ui-state-highlight to
When I read the source code of JDK 6.0 I found these two methods

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.