mirror of
https://github.com/github/semantic.git
synced 2024-12-11 08:45:48 +03:00
📝 originPackage.
This commit is contained in:
parent
2c0807f0e5
commit
f028d48731
@ -18,6 +18,7 @@ originModule (Term o _) = originModule o
|
|||||||
originModule (Module _ m) = Just m
|
originModule (Module _ m) = Just m
|
||||||
originModule _ = Nothing
|
originModule _ = Nothing
|
||||||
|
|
||||||
|
-- | Project the 'PackageInfo' out of an 'Origin', if available.
|
||||||
originPackage :: Origin term ty -> Maybe P.PackageInfo
|
originPackage :: Origin term ty -> Maybe P.PackageInfo
|
||||||
originPackage (Term o _) = originPackage o
|
originPackage (Term o _) = originPackage o
|
||||||
originPackage (Module o _) = originPackage o
|
originPackage (Module o _) = originPackage o
|
||||||
|
Loading…
Reference in New Issue
Block a user