← All packages

transformers-compat0.7.2

A small compatibility shim for the transformers library

Open the imported Cabal file ↗

author
Edward A. Kmett
bug-reports
http://github.com/ekmett/transformers-compat/issues
build-type
Simple
cabal-version
>= 1.10
category
Compatibility
copyright
Copyright (C) 2012-2015 Edward A. Kmett
extra-source-files
.ghci .gitignore .hlint.yaml .vim.custom config tests/*.hs tests/LICENSE tests/transformers-compat-tests.cabal README.markdown CHANGELOG.markdown
homepage
http://github.com/ekmett/transformers-compat/
license
BSD3
license-file
LICENSE
maintainer
Edward A. Kmett <ekmett@gmail.com>
name
transformers-compat
stability
provisional
synopsis
A small compatibility shim for the transformers library
tested-with
GHC == 7.0.4 , GHC == 7.2.2 , GHC == 7.4.2 , GHC == 7.6.3 , GHC == 7.8.4 , GHC == 7.10.3 , GHC == 8.0.2 , GHC == 8.2.2 , GHC == 8.4.4 , GHC == 8.6.5 , GHC == 8.8.4 , GHC == 8.10.7 , GHC == 9.0.1 , GHC == 9.2.1
version
0.7.2
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "transformers-compat",
  "version": "0.7.2",
  "cabalVersion": "1.10",
  "buildType": "Simple",
  "fields": {
    "author": [
      "Edward A. Kmett"
    ],
    "bug-reports": [
      "http://github.com/ekmett/transformers-compat/issues"
    ],
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      ">= 1.10"
    ],
    "category": [
      "Compatibility"
    ],
    "copyright": [
      "Copyright (C) 2012-2015 Edward A. Kmett"
    ],
    "description": [
      "This package includes backported versions of types that were added\nto transformers in transformers 0.3, 0.4, and 0.5 for users who need strict\ntransformers 0.2 or 0.3 compatibility to run on old versions of the\nplatform, but also need those types.\n.\nThose users should be able to just depend on @transformers >= 0.2@\nand @transformers-compat >= 0.3@.\n.\nNote: missing methods are not supplied, but this at least permits the types to be used."
    ],
    "extra-source-files": [
      ".ghci\n.gitignore\n.hlint.yaml\n.vim.custom\nconfig\ntests/*.hs\ntests/LICENSE\ntests/transformers-compat-tests.cabal\nREADME.markdown\nCHANGELOG.markdown"
    ],
    "homepage": [
      "http://github.com/ekmett/transformers-compat/"
    ],
    "license": [
      "BSD3"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "Edward A. Kmett <ekmett@gmail.com>"
    ],
    "name": [
      "transformers-compat"
    ],
    "stability": [
      "provisional"
    ],
    "synopsis": [
      "A small compatibility shim for the transformers library"
    ],
    "tested-with": [
      "GHC == 7.0.4\n, GHC == 7.2.2\n, GHC == 7.4.2\n, GHC == 7.6.3\n, GHC == 7.8.4\n, GHC == 7.10.3\n, GHC == 8.0.2\n, GHC == 8.2.2\n, GHC == 8.4.4\n, GHC == 8.6.5\n, GHC == 8.8.4\n, GHC == 8.10.7\n, GHC == 9.0.1\n, GHC == 9.2.1"
    ],
    "version": [
      "0.7.2"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "Control.Monad.Trans.Instances"
          ],
          "otherModules": [
            "Paths_transformers_compat"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.3 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "transformers",
              "range": ">=0.2 && <0.7",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "not": {
                "compiler": "ghc",
                "range": ">=8.0"
              }
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "fail",
                    "range": ">=4.9 && <4.10",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "flag": "five-three"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": ">=0.5.3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": "<0.5.3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "flag": "five"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": ">=0.5 && <0.5.3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": "<0.5 || >=0.5.3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "flag": "four"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": ">=0.4.1 && <0.5",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": "<0.4 || >=0.5",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "flag": "three"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": ">=0.3 && <0.4",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "flag": "mtl"
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [
                        {
                          "package": "mtl",
                          "range": ">=2.1 && <2.2",
                          "libraries": [
                            "main"
                          ]
                        }
                      ],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": null
                }
              ]
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": "<0.3 || >=0.4",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "flag": "two"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": ">=0.2 && <0.3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "flag": "mtl"
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [
                        {
                          "package": "mtl",
                          "range": ">=2.0 && <2.1",
                          "libraries": [
                            "main"
                          ]
                        }
                      ],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": null
                }
              ]
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "transformers",
                    "range": ">=0.3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "or": [
                {
                  "compiler": "ghc",
                  "range": ">=7.2"
                },
                {
                  "flag": "generic-deriving"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "ghc-prim",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "flag": "mtl"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "flag": "generic-deriving"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "and": [
                      {
                        "compiler": "ghc",
                        "range": "<8.0"
                      },
                      {
                        "flag": "generic-deriving"
                      }
                    ]
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [
                        {
                          "package": "generic-deriving",
                          "range": ">=1.10 && <2",
                          "libraries": [
                            "main"
                          ]
                        }
                      ],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": null
                }
              ]
            },
            "else": null
          },
          {
            "condition": {
              "and": [
                {
                  "not": {
                    "flag": "mtl"
                  }
                },
                {
                  "not": {
                    "flag": "generic-deriving"
                  }
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "flag": "two"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "Control.Applicative.Backwards",
                  "Control.Applicative.Lift",
                  "Data.Functor.Reverse"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "or": [
                {
                  "flag": "two"
                },
                {
                  "flag": "three"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "Control.Monad.Trans.Except",
                  "Control.Monad.Signatures",
                  "Data.Functor.Classes",
                  "Data.Functor.Sum"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "or": [
                {
                  "or": [
                    {
                      "or": [
                        {
                          "flag": "two"
                        },
                        {
                          "flag": "three"
                        }
                      ]
                    },
                    {
                      "flag": "four"
                    }
                  ]
                },
                {
                  "flag": "five"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "Control.Monad.Trans.Accum",
                  "Control.Monad.Trans.Select"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "or": [
                {
                  "compiler": "ghc",
                  "range": ">=7.2"
                },
                {
                  "flag": "generic-deriving"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "Data.Functor.Classes.Generic",
                  "Data.Functor.Classes.Generic.Internal"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    }
  ],
  "setupDependencies": [],
  "flags": [
    {
      "name": "two",
      "default": false,
      "manual": false,
      "description": "Use transformers 0.2. This will be selected by cabal picking the appropriate version."
    },
    {
      "name": "three",
      "default": false,
      "manual": false,
      "description": "Use transformers 0.3. This will be selected by cabal picking the appropriate version."
    },
    {
      "name": "four",
      "default": false,
      "manual": false,
      "description": "Use transformers 0.4. This will be selected by cabal picking the appropriate version."
    },
    {
      "name": "five",
      "default": false,
      "manual": false,
      "description": "Use transformers 0.5 up until (but not including) 0.5.3. This will be selected by cabal picking the appropriate version."
    },
    {
      "name": "five-three",
      "default": true,
      "manual": false,
      "description": "Use transformers 0.5.3. This will be selected by cabal picking the appropriate version."
    },
    {
      "name": "mtl",
      "default": true,
      "manual": true,
      "description": "-f-mtl Disables support for mtl for transformers 0.2 and 0.3. That is an unsupported configuration, and results in missing instances for `ExceptT`."
    },
    {
      "name": "generic-deriving",
      "default": true,
      "manual": true,
      "description": "-f-generic-deriving prevents generic-deriving from being built as a dependency.\nThis disables certain aspects of generics for older versions of GHC. In particular,\nGeneric(1) instances will not be backported prior to GHC 7.2, and generic operations\nover unlifted types will not be backported prior to GHC 8.0. This is an unsupported\nconfiguration."
    }
  ],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "git://github.com/ekmett/transformers-compat.git"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/transformers-compat-0.7.2/transformers-compat.cabal",
  "sha256": "044fb9955f63ee138fcebedfdcbe54afe741f2d5892a2d0bdf3a8052bd342643",
  "importedAt": "2026-10-14T12:50:16.691Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4.3 && <5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "transformers",
      "range": ">=0.2 && <0.7",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "fail",
      "range": ">=4.9 && <4.10",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": ">=8.0"
          }
        }
      ]
    },
    {
      "package": "transformers",
      "range": ">=0.5.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "five-three"
        }
      ]
    },
    {
      "package": "transformers",
      "range": "<0.5.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "flag": "five-three"
          }
        }
      ]
    },
    {
      "package": "transformers",
      "range": ">=0.5 && <0.5.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "five"
        }
      ]
    },
    {
      "package": "transformers",
      "range": "<0.5 || >=0.5.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "flag": "five"
          }
        }
      ]
    },
    {
      "package": "transformers",
      "range": ">=0.4.1 && <0.5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "four"
        }
      ]
    },
    {
      "package": "transformers",
      "range": "<0.4 || >=0.5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "flag": "four"
          }
        }
      ]
    },
    {
      "package": "transformers",
      "range": ">=0.3 && <0.4",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "three"
        }
      ]
    },
    {
      "package": "mtl",
      "range": ">=2.1 && <2.2",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "three"
        },
        {
          "flag": "mtl"
        }
      ]
    },
    {
      "package": "transformers",
      "range": "<0.3 || >=0.4",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "flag": "three"
          }
        }
      ]
    },
    {
      "package": "transformers",
      "range": ">=0.2 && <0.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "two"
        }
      ]
    },
    {
      "package": "mtl",
      "range": ">=2.0 && <2.1",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "two"
        },
        {
          "flag": "mtl"
        }
      ]
    },
    {
      "package": "transformers",
      "range": ">=0.3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "flag": "two"
          }
        }
      ]
    },
    {
      "package": "ghc-prim",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "or": [
            {
              "compiler": "ghc",
              "range": ">=7.2"
            },
            {
              "flag": "generic-deriving"
            }
          ]
        }
      ]
    },
    {
      "package": "generic-deriving",
      "range": ">=1.10 && <2",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "flag": "generic-deriving"
        },
        {
          "and": [
            {
              "compiler": "ghc",
              "range": "<8.0"
            },
            {
              "flag": "generic-deriving"
            }
          ]
        }
      ]
    }
  ],
  "exposedModules": [
    "Control.Monad.Trans.Instances",
    "Control.Applicative.Backwards",
    "Control.Applicative.Lift",
    "Data.Functor.Reverse",
    "Control.Monad.Trans.Except",
    "Control.Monad.Signatures",
    "Data.Functor.Classes",
    "Data.Functor.Sum",
    "Control.Monad.Trans.Accum",
    "Control.Monad.Trans.Select",
    "Data.Functor.Classes.Generic",
    "Data.Functor.Classes.Generic.Internal"
  ],
  "documents": {
    "readme": {
      "status": "available",
      "sha256": "aeed01fe6c1eec9d57984ebf01839d62c8bea050c4fef4721b1c45d62a338218",
      "error": null,
      "checkedAt": "2026-10-14T12:50:17.563Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "853d814f8cda12429d0c8e46fcf3ee58b99fbee00d82e6e172a77d3b7157143b",
      "error": null,
      "checkedAt": "2026-10-14T12:50:17.585Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "0.7.2",
      "imported_at": "2026-10-14T12:50:16.691Z"
    }
  ]
}

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.