diff --git a/hy/__init__.py b/hy/__init__.py index f25dd2f..56ffb1d 100644 --- a/hy/__init__.py +++ b/hy/__init__.py @@ -25,3 +25,10 @@ __version__ = "0.9.5" import hy.importer # NOQA # we import for side-effects. + +from hy.models.expression import HyExpression # NOQA +from hy.models.integer import HyInteger # NOQA +from hy.models.string import HyString # NOQA +from hy.models.symbol import HySymbol # NOQA +from hy.models.dict import HyDict # NOQA +from hy.models.list import HyList # NOQA diff --git a/tests/compilers/native/quoting.hy b/tests/compilers/native/quoting.hy index 63c8f96..6a1b522 100644 --- a/tests/compilers/native/quoting.hy +++ b/tests/compilers/native/quoting.hy @@ -1,10 +1,10 @@ ;;; ;;; -(import-from hy.models.expression HyExpression) -(import-from hy.models.symbol HySymbol) +(import-from hy HyExpression HySymbol HyString) (defn test-basic-quoting [] (assert (= (type (quote (foo bar))) HyExpression)) - (assert (= (type (quote foo)) HySymbol))) + (assert (= (type (quote foo)) HySymbol)) + (assert (= (type (quote "string")) HyString)))