packages feed

hls-code-range-plugin-1.0.0.0: test/testdata/selection-range/Function.hs

module FuncMultiMatch where

someFunc :: Integral a => a -> String -> Maybe (Int, String)
someFunc _ "magic" = Nothing
someFunc x y = Just (fromIntegral x, y)
  where
    go :: Int -> Int
    go 0 = -1
    go x = x + 1

    hi = "greeting"

otherFunc :: String -> String
otherFunc = id