-
-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Labels
component: hls-eval-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
Steps to reproduce
Tell us how to reproduce this issue.
Create a stack project and update Main.hs to:
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.ByteString.Lazy.Char8
myByteString :: ByteString
myByteString = "my "
-- >>> myByteString <> "stuff"
main :: IO ()
main = pure ()Expected behaviour
OverloadedStrings should take effect in the inline code evaluation context resulting in:
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.ByteString.Lazy.Char8
myByteString :: ByteString
myByteString = "my "
-- >>> myByteString <> "stuff"
-- "my stuff"
main :: IO ()
main = pure ()Actual behaviour
An error indicating the inline evaluation context doesn't respect OverloadedStrings. I've also verified it doesn't work with others like DeriveGeneric and TypeApplications.
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.ByteString.Lazy.Char8
myByteString :: ByteString
myByteString = "my "
-- >>> myByteString <> "stuff"
-- Couldn't match expected type ‘ByteString’ with actual type ‘[Char]’
main :: IO ()
main = pure ()Metadata
Metadata
Assignees
Labels
component: hls-eval-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..