Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
common-problems
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Cloogle
  • common-problems
  • Issues
  • #84

Closed
Open
Opened May 07, 2020 by Camil Staps@cstaps🚀Owner

Add "uniqueness specification of instance conflicts with current application"

Reported by @eveen:

Exact error message:

Overloading/Uniqueness error [nested.icl,20,Start]: "ctwo" uniqueness specification of instance conflicts with current application (? Int,? Int) _!Maybe

A minimal example:

module nested

import StdEnv
import StdMaybe

class cone v | ctwo (*v Int, *v Int) v

class ctwo a v
where
	f :: *(v *a) -> *a

instance ctwo (* ?a, * ?b) ?
where
	f ?None = (?None, ?None)
	f (?Just x) = x

g :: (*v *(*v Int, *v Int)) -> *(*v Int, *v Int) | cone v
g x = f x

Start = g v
where
	x :: * ?Int
	x = ?Just 1

	v :: * ? *(* ?Int, * ?Int)
	v = ?Just (x, x)
Edited Jan 15, 2021 by Camil Staps
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cloogle/common-problems#84