{"action":"opened","issue":{"url":"https://api.github.com/repos/sebastiaanvisser/clay/issues/112","labels_url":"https://api.github.com/repos/sebastiaanvisser/clay/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/sebastiaanvisser/clay/issues/112/comments","events_url":"https://api.github.com/repos/sebastiaanvisser/clay/issues/112/events","html_url":"https://github.com/sebastiaanvisser/clay/issues/112","id":91405756,"number":112,"title":"Setting unitless values for lineHeight","user":{"login":"bryangarza","id":1396101,"avatar_url":"https://avatars.githubusercontent.com/u/1396101?v=3","gravatar_id":"","url":"https://api.github.com/users/bryangarza","html_url":"https://github.com/bryangarza","followers_url":"https://api.github.com/users/bryangarza/followers","following_url":"https://api.github.com/users/bryangarza/following{/other_user}","gists_url":"https://api.github.com/users/bryangarza/gists{/gist_id}","starred_url":"https://api.github.com/users/bryangarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryangarza/subscriptions","organizations_url":"https://api.github.com/users/bryangarza/orgs","repos_url":"https://api.github.com/users/bryangarza/repos","events_url":"https://api.github.com/users/bryangarza/events{/privacy}","received_events_url":"https://api.github.com/users/bryangarza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-27T02:56:44Z","updated_at":"2015-06-27T02:56:44Z","closed_at":null,"body":"I haven't been able to do:\r\n``` haskell\r\nlineHeight 1\r\n```\r\nBecause it gives:\r\n```\r\n    No instance for (Num (Size a0)) arising from the literal ‘1’\r\n    The type variable ‘a0’ is ambiguous\r\n    Note: there are several potential instances:\r\n      instance Num (Size Rel) -- Defined in ‘Clay.Size’\r\n      instance Num (Size Abs) -- Defined in ‘Clay.Size’\r\n    In the first argument of ‘lineHeight’, namely ‘1’\r\n    In a stmt of a 'do' block: lineHeight 1\r\n    ...\r\nFailed, modules loaded: none.\r\n```\r\nMaking it `lineHeight (1 :: Size Rel)` or `lineHeight (1 :: Size Rem)` doesn't give the right CSS, that does `line-height : 1%` and `line-height : 1px`, respectively.\r\n\r\nSo instead I've been using `other` for all the `lineHeight` calls:\r\n``` haskell\r\nlineHeight (other \"1\")\r\n```\r\nAm I doing something wrong? `line-height` is one of those CSS properties where having a unitless size is the best practice."}}