ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Do something clever with the new `@since` annotation #117

Closed hvr closed 8 years ago

hvr commented 9 years ago

Since GHC 7.10/haddock-2.16, Haddock has a new markup for @since-annotations.

It's used throughout base, e.g.

-- | An infix synonym for 'mappend'.
--
-- @since 4.5.0.0
(<>) :: Monoid m => m -> m -> m
(<>) = mappend

I wonder if Hoogle could somehow pick that annotation up and do something interesting with it...

ndmitchell commented 9 years ago

Any ideas as to what? Generally, excluding newer functions is probably a bad idea.

ndmitchell commented 9 years ago

I guess one "clever" thing for base would be to mark it up as "since GHC 7.8" instead of "since 4.5.0.0" (which is basically meaningless to most people). Not sure if Haddock should be doing that instead though.

ndmitchell commented 8 years ago

Can't think of anything clever to do, so not doing anything.