Is `#` part of the core syntax or extension?

Is the # part of the core syntax or extension?

getFile :: Region -> BucketName -> ObjectKey -> FilePath -> IO ()
getFile r b k f = do
  lgr <- newLogger Debug stdout
  env <- newEnv discover <&> set #envLogger lgr . within r

  runResourceT $ do
    rs <- send env (newGetObject b k)
    view #body rs `sinkBody` CB.sinkFile f
    liftIO $ Text.putStrLn "done"

Answer

Syntax made possible using the OverloadedLabels extension

1 Like

You may also be interested by MagicHash extension, which applies to unlifted constructors and primops (although hash is then a last character).

1 Like