{"action":"created","issue":{"url":"https://api.github.com/repos/GaloisInc/cryptol/issues/248","labels_url":"https://api.github.com/repos/GaloisInc/cryptol/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/GaloisInc/cryptol/issues/248/comments","events_url":"https://api.github.com/repos/GaloisInc/cryptol/issues/248/events","html_url":"https://github.com/GaloisInc/cryptol/issues/248","id":90166512,"number":248,"title":"lg2 type operator doesn't work ","user":{"login":"brianhuffman","id":619882,"avatar_url":"https://avatars.githubusercontent.com/u/619882?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhuffman","html_url":"https://github.com/brianhuffman","followers_url":"https://api.github.com/users/brianhuffman/followers","following_url":"https://api.github.com/users/brianhuffman/following{/other_user}","gists_url":"https://api.github.com/users/brianhuffman/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhuffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhuffman/subscriptions","organizations_url":"https://api.github.com/users/brianhuffman/orgs","repos_url":"https://api.github.com/users/brianhuffman/repos","events_url":"https://api.github.com/users/brianhuffman/events{/privacy}","received_events_url":"https://api.github.com/users/brianhuffman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-22T17:53:21Z","updated_at":"2015-06-22T21:07:04Z","closed_at":null,"body":"Here's a minimal example:\r\n\r\n    module test where\r\n    foo : [lg2 16]\r\n    foo = zero\r\n\r\n    [error] at ./test.cry:2:8--2:14\r\n        Expected a type named 'lg2' but found a value instead\r\n\r\nThe same program works if I change `lg2` to `width`."},"comment":{"url":"https://api.github.com/repos/GaloisInc/cryptol/issues/comments/114262128","html_url":"https://github.com/GaloisInc/cryptol/issues/248#issuecomment-114262128","issue_url":"https://api.github.com/repos/GaloisInc/cryptol/issues/248","id":114262128,"user":{"login":"brianhuffman","id":619882,"avatar_url":"https://avatars.githubusercontent.com/u/619882?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhuffman","html_url":"https://github.com/brianhuffman","followers_url":"https://api.github.com/users/brianhuffman/followers","following_url":"https://api.github.com/users/brianhuffman/following{/other_user}","gists_url":"https://api.github.com/users/brianhuffman/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhuffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhuffman/subscriptions","organizations_url":"https://api.github.com/users/brianhuffman/orgs","repos_url":"https://api.github.com/users/brianhuffman/repos","events_url":"https://api.github.com/users/brianhuffman/events{/privacy}","received_events_url":"https://api.github.com/users/brianhuffman/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T21:07:04Z","updated_at":"2015-06-22T21:07:04Z","body":"Keep in mind that this discussion is only about the `lg2` *type operator*. The function `lg2 : {a} (Arith a) => a -> a` is still there."}}